WaldoJeffers / conductor

Mix both synchronous and asynchronous code without hassle
https://conductor.js.org
MIT License
65 stars 2 forks source link

See how optional parameters and currying could work #13

Open WaldoJeffers opened 6 years ago

WaldoJeffers commented 6 years ago

Currently, as curry checks the number of passed parameters against the function's length property, curried functions can not have optional parameters, which can be frustrating at times.

Ideas

Warning

WaldoJeffers commented 6 years ago

Interestingly, parameters with default values are not included in the count returned by fn.length