Commit 9c7d341b authored by Joel Martin's avatar Joel Martin

Add isArray to Object prototype.

parent 7dc038ef
......@@ -33,6 +33,12 @@ Array.prototype.push32 = function (num) {
(num ) & 0xFF );
};
if(!Array.isArray) {
Array.isArray = function (vArg) {
return Object.prototype.toString.call(vArg) === "[object Array]";
};
}
// IE does not support map (even in IE9)
//This prototype is provided by the Mozilla foundation and
//is distributed under the MIT license.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment