src/menubar.js
function selectionIsInverted(selection) {
  if (selection.anchorNode == selection.focusNode) return selection.anchorOffset > selection.focusOffset
  return selection.anchorNode.compareDocumentPosition(selection.focusNode) == Node.DOCUMENT_POSITION_FOLLOWING
}
function selectionIsInverted(selection) {
  if (selection.anchorNode == selection.focusNode) return selection.anchorOffset > selection.focusOffset
  return selection.anchorNode.compareDocumentPosition(selection.focusNode) == Node.DOCUMENT_POSITION_FOLLOWING
}
function selectionIsInverted ( selection ) { if ( selection . anchorNode == selection . focusNode ) return selection . anchorOffset > selection . focusOffset return selection . anchorNode . compareDocumentPosition ( selection . focusNode ) == Node . DOCUMENT_POSITION_FOLLOWING }
Not precise, but close enough
Not precise but close enough