• Tests whether all elements of the given iterable pass 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 true to continue tests, or false to stop it and return false 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 test function returned a truthy value for every element, or false otherwise. Returns true for empty iterable.

Generated using TypeDoc