Function isArrayLikeObject

  • This method is like _.isArrayLike except that it also checks if value is an object.

    Type Parameters

    • T extends { __lodashAnyHack: any }

    Parameters

    • value: T

      The value to check.

    Returns boolean

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

    _.isArrayLikeObject([1, 2, 3]);
    // => true

    _.isArrayLikeObject(document.body.children);
    // => true

    _.isArrayLikeObject('abc');
    // => false

    _.isArrayLikeObject(_.noop);
    // => false
  • Parameters

    • value:
          | undefined
          | null
          | string
          | number
          | boolean
          | Function
          | (...args: any[]) => any

    Returns value is never

    _.isArrayLikeObject

  • Parameters

    • value: any

    Returns value is object & { length: number }

    _.isArrayLikeObject