Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment none

  • Tests whether all elements in a collection are falsy.

    Notes

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

    Parameters

    Returns boolean

    boolean indicating whether all elements are falsy

    Example

    var arr = [ 0, 0, 0, 0, 0 ];
    
    var bool = none( arr );
    // returns true