deno.com
function isArray
#isArray(object: unknown): object is unknown[]
Deprecated

Alias for Array.isArray().

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

import util from 'node:util';

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

Parameters #

#object: unknown

Return Type #

object is unknown[]