Tag: array
Object Or Array Check in JavaScirpt
June 13, 2009
Test whether an object is an object or an array if(Object.prototype.toString.apply(arr) === ‘[object Array]’) alert(“Array”) Original Article
Object or Array
March 6, 2007
Find whether the given variable is an object,or is an Array? function isArray(testObject) { return testObject && !(testObject.propertyIsEnumerable(‘length’)) && typeof…
Recent Comments