Skip to content

isArray

Test if a value is an array.

Usage

js
import { isArray } from '@studiometa/js-toolkit/utils';

isArray([]); // true
isArray(1); // false

Parameters

  • value (any): the value to test

Return value

Returns true if the given value is an array, false otherwise.

MIT Licensed