DEV Community

Discussion on: The `this` Keyword in JavaScript

Collapse
 
andreacanton profile image
Andrea Canton

Thank you for sharing! For retro compatibility you can use bind() on the function passed as argument at the forEach

Collapse
 
youssefzidan profile image
Youssef Zidan

That's correct!
Thank you.