@buckneri/js-lib-selection

Functions for working with text selections

Usage no npm install needed!

<script type="module">
  import buckneriJsLibSelection from 'https://cdn.skypack.dev/@buckneri/js-lib-selection';
</script>

README

js-lib-selection

Functions for working with text selections

Install

npm i @buckneri/js-lib-selection

Reference ยท Source

  • rangeContiguous (range)
  • rangeEmpty (range)
  • selectionTrimRight (selection)
  • selectionTrim (selection)