Function hasItemByLetterAndFilter

  • Finds an item in an array based on a specific letter and optional filter text.

    Parameters

    • letter: string

      The letter to search for in the item's key value.

    • array: any[]

      The array of items to search through.

    • key: string = 'name'

      The key to check in each item. Defaults to "name".

    • Optional index: number

      The index of the letter to check in the key value. Defaults to 0.

    • Optional filterText: string

      The optional filter text to match against the key value.

    Returns boolean

    True if an item is found that matches the letter and filter text, false otherwise.

Generated using TypeDoc