diff --git a/src/Angular.js b/src/Angular.js index 11ce5cf5be1a..ae1d0f9ff5a3 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -482,10 +482,14 @@ function isDate(value){ * @param {*} value Reference to check. * @returns {boolean} True if `value` is an `Array`. */ -function isArray(value) { - return toString.call(value) === '[object Array]'; -} - +var isArray = (function() { + if (!isFunction(Array.isArray)) { + return function(value) { + return toString.call(value) === '[object Array]'; + }; + } + return Array.isArray; +})(); /** * @ngdoc function