isArray

Checks if the provided value is an array.

export const isArray = value => Array.isArray(value)

Basic usage

isArray([1, 2, 3]) // true
isArray('not an array') // false