Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isArrayLike

  • isArrayLike(value: any): boolean
  • Tests if a value is array-like.

    Notes

    • If provided a string, the function returns true.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating if a value is array-like

    Example

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

    Example

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