How to Test/Check If a Value Is an Array in JavaScript

Posted:

Read about the JavaScript isArray() function.

Array.isArray = Array.isArray || function(o) { return Object.prototype.toString.call(o) === '[object Array]'; };