Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isEmptyArray

  • isEmptyArray(value: any): boolean
  • Tests if a value is an empty array.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether value is an empty array

    Example

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

    Example

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

    Example

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