check the constructor property to find out if an object is an Array (contains the word "Array"):
function isArray(myArray) {
return myArray.constructor.toString().indexOf("Array") > -1;
}
Are there any code examples left?
New code examples in category Javascript