function isArray(arr) {
  return Array.isArray(arr) || arr instanceof Array;
}
@ngdoc function
@name angular.isArray
@module ng
@kind function

@description
Determines if a reference is an `Array`.

@param {*} value Reference to check.
@returns {boolean} True if `value` is an `Array`.