• Creates a function that checks if any element of an Array matches a Predicate.

    Returns false if the array is empty.

    Returns

    true if any element matches the predicate, otherwise false

    Type Parameters

    • T

    Parameters

    • predicate: Predicate<[T, number, ArrayLike<T>]>

      the Predicate to match

    • Optional fromIndex: number

      the optional array index to begin with, defaults to 0

    Returns ((array: ArrayLike<T>) => boolean)

Generated using TypeDoc