Function isArray

  • Alias for Array.isArray().

    Returns true if the given object is an Array. Otherwise, returns false.

    const util = require('util');

    util.isArray([]);
    // Returns: true
    util.isArray(new Array());
    // Returns: true
    util.isArray({});
    // Returns: false

    Deprecated

    Since v4.0.0 - Use isArray instead.

    Parameters

    • object: unknown

    Returns object is unknown[]

  • Alias for Array.isArray().

    Returns true if the given object is an Array. Otherwise, returns false.

    const util = require('util');

    util.isArray([]);
    // Returns: true
    util.isArray(new Array());
    // Returns: true
    util.isArray({});
    // Returns: false

    Deprecated

    Since v4.0.0 - Use isArray instead.

    Parameters

    • object: unknown

    Returns object is unknown[]

Generated using TypeDoc