• Tests whether at least one element of the given iterable passes the test implemented by the provided function.

    Type Parameters

    • T

      Iterated elements type.

    Parameters

    • iterable: Iterable<T>

      An iterable to test elements of.

    • test: ((this, element) => boolean)

      A predicate function to test each element. Returns false to continue tests, or true to stop it and return true from the method call. It accepts the tested element as the only parameter.

        • (this, element): boolean
        • Parameters

          • this: void
          • element: T

          Returns boolean

    Returns boolean

    true if the callback function returned a truthy value for at least one element in the array, or false otherwise. Returns false for empty iterable.

Generated using TypeDoc