JavaScript: Array.isArray

By Xah Lee. Date: . Last updated: .
Array.isArray( value )
Return true if value is a array object. (not a Array-Like Object .) Else, false.
// real array
console.log( Array.isArray ( ["a", "b"] ) );
// true

// array-like object
console.log( Array.isArray ( {0:"a", 1:"b" , length:2} ) );
// false
JS in Depth
XAH  BUY NOW

JS in Depth

JS Obj Ref

DOM


JS Obj Ref

Array

prototype