Function arrFindIndicesOf

  • Returns an array of indices where the predicate function returns true for the corresponding element in the input array.

    Type Parameters

    • T

    Parameters

    • input: T[]

      The array to search.

    • predicate: ((value) => boolean)

      The function to test each element of the array.

        • (value): boolean
        • Parameters

          • value: T

          Returns boolean

    Returns number[]

    An array of indices where the predicate function returns true.

Generated using TypeDoc