1 var isArray = Function.isArray || function(o) 2 { 3 return typeof o === "object" && 4 Object.prototype.toString.call(o) === "[object Array]"; 5 } // end isArray()