by ponkin · 8y ago · 0 comments
can be partialy applied like the following const add3 = add(3) // this is also a function
You can:
const add3 = add.bind(null, 3)Proper curried languages are definitely better suited for partial application though.
const add = (a, b=0) => {return a+b}