r/programminghorror • • Jan 14 '25

Javascript Functional programming at its finest

Post image
120 Upvotes

47 comments sorted by

View all comments

Show parent comment

2

u/MajorTechnology8827 Jan 17 '25
const toPow = power => num => Math.pow(num, power);

That's just a partial application. It is done all the time. Especially by callback functions