Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/every/docs/types/index.d"

Index

Functions

Functions

Export assignment every

  • Tests whether all elements in a collection are truthy.

    Notes

    • The function immediately returns upon encountering a falsy value.
    • If provided an empty collection, the function returns true.

    Parameters

    Returns boolean

    boolean indicating whether all elements are truthy

    Example

    var arr = [ 1, 1, 1, 1, 1 ];
    
    var bool = every( arr );
    // returns true