Polyfill dla starszych przeglądarek.
var arr = []; function isArray(arr) { return Object.prototype.toString.call(arr) === '[object Array]' ? true : false; } //ES5 Array.isArray(arr); //true //other way arr instanceof Array //true