refactor(isArray): use Array.isArray exclusively

IE9 supports Array.isArray so we don't need a polyfill any more.
This commit is contained in:
Igor Minar
2014-08-16 22:59:12 -07:00
parent c093c43b1f
commit b0571517c5

View File

@@ -506,14 +506,7 @@ function isDate(value) {
* @param {*} value Reference to check.
* @returns {boolean} True if `value` is an `Array`.
*/
var isArray = (function() {
if (!isFunction(Array.isArray)) {
return function(value) {
return toString.call(value) === '[object Array]';
};
}
return Array.isArray;
})();
var isArray = Array.isArray;
/**
* @ngdoc function