Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 238 Bytes

isArray.md

File metadata and controls

11 lines (8 loc) · 238 Bytes

isArray

Checks if the given argument is an array.

Use Array.isArray() to check if a value is classified as an array.

const isArray = val => !!val && Array.isArray(val);
// isArray(null) -> false
// isArray([1]) -> true