re: Improve your JavaScript with functional programming VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Why const square = power.bind(null, 2) over const square = num => power(2, num)?
 

I believe they are doing the same thing. bind() offers a built-in solution for writing a wrapper function, but with the added advantage of passing context as the first argument (which I haven't used here).

code of conduct - report abuse