Return to Snippet

Revision: 6891
at June 23, 2008 11:15 by micmath


Initial Code
var isArray = function(value) {
    return value &&
        typeof value === 'object' &&
        typeof value.length === 'number' &&
        typeof value.splice === 'function' &&
        !(value.propertyIsEnumerable('length'));
};

Initial URL

                                

Initial Description
Cribbed from Crockford's "JavaScript: The good parts."

Initial Title
is it an array?

Initial Tags

                                

Initial Language
JavaScript