DEV Community

Discussion on: .bind it's more than just this.

Collapse
 
vonheikemen profile image
Heiker

I do prefer the first option you mention. Now, I don't think a bound function is exotic anymore. When the class keyword was first introduced in ES6 a lot of people found that .bind helped them keep the methods behavior consistent. Maybe they don't know they can use it to achieve partial application but they know .bind exists.

I actually wrote something about partial application a while ago, here is the link.

Thread Thread
 
xavierbrinonecs profile image
Xavier Brinon
Thread Thread
 
vonheikemen profile image
Heiker

Today I learned.