We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 560f008 commit 751ebc1Copy full SHA for 751ebc1
src/Angular.js
@@ -510,10 +510,14 @@ function isDate(value) {
510
* @param {*} value Reference to check.
511
* @returns {boolean} True if `value` is an `Array`.
512
*/
513
-function isArray(value) {
514
- return toString.call(value) === '[object Array]';
515
-}
516
-
+var isArray = (function() {
+ if (!isFunction(Array.isArray)) {
+ return function(value) {
+ return toString.call(value) === '[object Array]';
517
+ };
518
+ }
519
+ return Array.isArray;
520
+})();
521
522
/**
523
* @ngdoc function
0 commit comments