You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
angular.isArray currently uses Object.prototype.toString to determine if a variable is an Array which results, for example, in filters such as orderByFilter ignoring collection classes that inherit properties and methods of Array.prototype. As well as an added performance impact compared to instanceof.
Can we please use instanceof rather than Object.prototype.toString within angular.isArray so orderByFilter and other services work with classes that inherit from Array.prototype?
It may also be worth considering changing isDate, isRegExp and isFile as well for the performance increase and classes that inherit from those prototypes.