Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
function logBinary(number){ | |
console.log((number >>> 0).toString(2).replace(/(.{8})/g, " ")); | |
} | |
var startBit = 8; | |
var bitsToGet = 8; | |
var alpha = 45; | |
var red = 187; | |
var green = 255; | |
var blue = 56; |
const { Editor, EditorState, CompositeDecorator, Modifier, SelectionState } = Draft; | |
const getMentionPosition = () => { | |
const range = window.getSelection().getRangeAt(0).cloneRange(); | |
const rect = range.getBoundingClientRect(); | |
return { top: rect.bottom, left: rect.left } | |
} | |
const getCaretPosition = (editorState) => { | |
return editorState.getSelection().getAnchorOffset() |
Is JavaScript:
- Synchronous or Asynchronous?
- Single-threaded or Multi-threaded?