I am developing angular application, in which I used angular.forEach method to iterate over arrays (Not over objects). It is working similar as Array.prototype.forEach. So I am having some questions about using this.
- Which method is good for use as per standards.
- Which is good as per performance. I tested on jsPerf, It gave same result.
forEachwill delegate toArray.prototype.forEachif it's available.