Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-empty-collection/docs/types/index.d"

Index

Functions

Functions

Export assignment isEmptyCollection

  • isEmptyCollection(value: any): boolean
  • Tests if a value is an empty collection.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether value is an empty collection

    Example

    var bool = isEmptyCollection( [] );
    // returns true

    Example

    var bool = isEmptyCollection( { 'length': 0 } );
    // returns true

    Example

    var bool = isEmptyCollection( [ 1, 2, 3 ] );
    // returns false

    Example

    var bool = isEmptyCollection( {} );
    // returns false