javascript - Should I be using the for-loop construct or the forEach method for iteration? -
Is one method more efficient? Are there any limitations in a method by any other method? Thanks for any input, you guys can give me; -)
The method is part of the ECMAScript 5 version Specification is available but not in IE.
I would recommend using a simple sequential loop because a callback function that requires
forEach
, a function will start closing and You do not have to pay attention to IE
But if you can implement for forEach
and all other new array.prototype
methods, etc, ..., IE, I in linked pages.
Comments
Post a Comment