• alias of _.every

    Checks if predicate returns truthy for all elements of collection. Iteration is stopped once predicate returns falsey. The predicate is invoked with three arguments: (value, index|key, collection).

    Type Parameters

    • T

    Parameters

    • collection: undefined | null | List<T>

      The collection to iterate over.

    • Optional predicate: ListIterateeCustom<T, boolean>

      The function invoked per iteration.

    Returns boolean

    Returns true if all elements pass the predicate check, else false.

    See

    _.every

  • alias of _.every

    Checks if predicate returns truthy for all elements of collection. Iteration is stopped once predicate returns falsey. The predicate is invoked with three arguments: (value, index|key, collection).

    Type Parameters

    • T extends object

    Parameters

    • collection: undefined | null | T

      The collection to iterate over.

    • Optional predicate: ObjectIterateeCustom<T, boolean>

      The function invoked per iteration.

    Returns boolean

    Returns true if all elements pass the predicate check, else false.

    See

    _.every