Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b057151

Browse files
committed
refactor(isArray): use Array.isArray exclusively
IE9 supports Array.isArray so we don't need a polyfill any more.
1 parent c093c43 commit b057151

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Angular.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -506,14 +506,7 @@ function isDate(value) {
506506
* @param {*} value Reference to check.
507507
* @returns {boolean} True if `value` is an `Array`.
508508
*/
509-
var isArray = (function() {
510-
if (!isFunction(Array.isArray)) {
511-
return function(value) {
512-
return toString.call(value) === '[object Array]';
513-
};
514-
}
515-
return Array.isArray;
516-
})();
509+
var isArray = Array.isArray;
517510

518511
/**
519512
* @ngdoc function

0 commit comments

Comments
 (0)