/ Published in: JavaScript
Cribbed from Crockford's "JavaScript: The good parts."
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var isArray = function(value) { return value && typeof value === 'object' && typeof value.length === 'number' && typeof value.splice === 'function' && !(value.propertyIsEnumerable('length')); };