Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

[Angular.forEach] use for loop instead of ES5 #3221

@hsdk123

Description

@hsdk123

I've noticed a comment here with regards to angular.forEach:

http://docs.angularjs.org/api/angular.forEach

The following outlines a huge performance hit with ES5.forEach in comparison to a regular for loop:
http://jsperf.com/foreach-vs-loop/20

It would be nice if angular.forEach could utilize the performance boost coming from the old for-loop instead of the new ES5.forEach. I'm currently editing all my angular.forEach statements to regular for loops due to the performance hit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions