Function isArray

  • Checks if value is classified as an Array object.

    Parameters

    • value: any

      The value to check.

    Returns value is any[]

    Returns true if value is an array, else false.

    5.5.0

    isArray([1, 2, 3]);
    // => true

    isArray(document.body.children);
    // => false

    isArray('abc');
    // => false

    isArray(noop);
    // => false