Options
All
  • Public
  • Public/Protected
  • All
Menu

Module is/arrayLike

Index

References

Functions

References

Renames and re-exports isArrayLike

Functions

  • isArrayLike(test: any): test is ArrayLike<any>
  • Checks if test is arrayLike (has length and index properties).

    example
     isArrayLike([]);                            //=> true
    isArrayLike({ 0:'a', 1: 'b', length: 2 }); //=> true
    isArrayLike(null); //=> false

    Parameters

    • test: any

      The value to check.

    Returns test is ArrayLike<any>

Generated using TypeDoc