DEV Community

Discussion on: Stop mutating in map, reduce and forEach

Collapse
 
ecfaria profile image
Emílio Faria

Won’t for ... of go through the whole prototype chain?

Collapse
 
smeijer profile image
Stephan Meijer

Are you not confusing it with for in?

developer.mozilla.org/en-US/docs/W...

Collapse
 
ecfaria profile image
Emílio Faria

yeap, you're right! Sorry :)