• 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.

    Type Parameters

    • T extends {
          __lodashAnyHack: any;
      }

    Parameters

    Returns boolean

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

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

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

    _.isArrayLike('abc');
    // => true

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

    • value: undefined | null | ((...args: any[]) => any)

    Returns value is never

    _.isArrayLike

  • Parameters

    • value: any

    Returns value is {
        length: number;
    }

    _.isArrayLike