feature(polyfill) add isArray

This commit is contained in:
coderaiser 2014-05-23 05:39:41 -04:00
parent 0d9fb99e2c
commit 9aed0910fc

View file

@ -47,6 +47,14 @@ var Util, DOM, jQuery;
return fBound;
};
if (!Array.isArray)
Array.isArray = function(arr) {
var type = Util.getType(arr),
is = type === 'array';
return is;
};
/*
* typeof callback === "function" should not be used,
* as older browsers may report objects to be a function,