@wordpress/dom
Version:
DOM utilities module for WordPress.
12 lines • 440 B
TypeScript
/**
* Returns true if the given selection object is in the forward direction, or
* false otherwise.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
*
* @param {Selection} selection Selection object to check.
*
* @return {boolean} Whether the selection is forward.
*/
export default function isSelectionForward(selection: Selection): boolean;
//# sourceMappingURL=is-selection-forward.d.ts.map