Day: March 6, 2007

Object or Array

Find whether the given variable is an object,or is an Array? function isArray(testObject) { return testObject && !(testObject.propertyIsEnumerable(‘length’)) && typeof…