Options
All
  • Public
  • Public/Protected
  • All
Menu

Module isArrayLike

Index

References

Functions Lang

References

Renames and re-exports __type

Lang Functions

  • isArrayLike(value: any): boolean
  • Checks if value is array-like. A value is considered array-like if it's not a function and has a value.length that's an integer greater than or equal to 0 and less than or equal to Number.MAX_SAFE_INTEGER.

    since

    5.3.0

    example
    isArrayLike([1, 2, 3])
    // => true

    isArrayLike(document.body.children)
    // => true

    isArrayLike('abc')
    // => true

    isArrayLike(Function)
    // => false

    Parameters

    • value: any

      The value to check.

    Returns boolean

    Returns true if value is array-like, else false.