Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Export assignment isEmptyArrayLikeObject

  • isEmptyArrayLikeObject(value: any): boolean
  • Tests if a value is an empty array-like object.

    Notes

    • If provided a string, the function returns false.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating if a value is an empty array-like object

    Example

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

    Example

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

    Example

    var bool = isEmptyArrayLikeObject( '' );
    // returns false