Return to Snippet

Revision: 35350
at November 5, 2010 21:59 by ionutzp


Initial Code
if (typeof Array.isArray === "undefined") {
    Array.isArray = function (arg) {
        return Object.prototype.toString.call(arg) === "[object Array]";
    };
}

Initial URL

                                

Initial Description

                                

Initial Title
Check for Array-ness

Initial Tags
javascript, array

Initial Language
JavaScript