d3-selection
Data-driven DOM manipulation: select elements and join them to data.
quickselect
A tiny and fast selection algorithm in JavaScript.
select
Programmatically select the text of a HTML element
@lexical/selection
This package contains utilities and helpers for handling Lexical selection.