Skip to content

Latest commit

 

History

History
executable file
·
11 lines (9 loc) · 282 Bytes

File metadata and controls

executable file
·
11 lines (9 loc) · 282 Bytes

Array.isArray(object)

Determines whether an object is an array.

Array.isArray([]);            // true
Array.isArray(new Array());   // true
Array.isArray([1, 2, 3]);     // true
Array.isArray("an array");    // false
Array.isArray({});            // false