Skip to main content

isArray

Checks if value is classified as an Array object.

API

function isArray(value: unknown): value is any[];

Usage

import { isArray } from '@feedzai/js-utilities';

isArray([1, 2, 3])
// true

isArray(document.body.children)
// false

isArray('abc')
// false