DEV Community

Discussion on: JS Array Iterators Cheat Sheet — Part 1

Collapse
 
sarathsantoshdamaraju profile image
Krishna Damaraju • Edited

Yes, Richard, it does, but that is an optional callback passed by the developer and not a spec requirement. And one more important thing, using this callback might cause the unknown side-effects while mutating the original array.

But thanks for pointing, I have made some changes not to confuse readers.