Preparing search index...
    • Suggestions to display for the typed text: case-insensitive substring matches, or none when the only match equals the text (nothing left to complete).

      Parameters

      • referenceTextArray: string[]

        Every candidate suggestion

      • text: string

        The text typed by the user

      Returns string[]

      The suggestions to show, in reference order; empty when the list should be hidden