Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

isArrayLike

  • isArrayLike(value: any): boolean
  • Tests if a value is an 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 array-like object

    Example

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

    Example

    var bool = isArrayLikeObject( { 'length':10 } );
    // returns true

    Example

    var bool = isArrayLikeObject( 'beep' );
    // returns false