Logos DX
    Preparing search index...
    • The getSelection() method of the Document interface returns the Selection object associated with this document, representing the range of text selected by the user, or the current position of the caret.

      MDN Reference

      Returns Selection | null