Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-truthy-array/docs/types/index.d"

Index

Functions

Functions

Export assignment isTruthyArray

  • isTruthyArray(value: any): boolean
  • Tests if a value is an array-like object containing only truthy values.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether an input value is an array-like object containing only truthy values

    Example

    var bool = isTruthyArray( [ {}, [] ] );
    // returns true
    
    bool = isTruthyArray( [ false, null, void 0, '', 0, NaN ] );
    // returns false
    
    bool = isTruthyArray( [] );
    // returns false