Front end developer specialising in JavaScript and React. Experienced in all aspects of modern front end development. Passionate about making accessible, secure and performant software.
At first glance, it feels unusual for the multiply function to accept 3 arguments. I would expect either 2 arguments or a variable number of arguments (...args). However, that's up for discussion depending on the specific case.
Then, if it needs currying, it could be done with a curry utility instead. We can make our own or import the one from Ramda or something.
This is an enjoyable series, keep it up :).
Vomit.
At first glance, it feels unusual for the
multiply
function to accept 3 arguments. I would expect either 2 arguments or a variable number of arguments (...args
). However, that's up for discussion depending on the specific case.Then, if it needs currying, it could be done with a curry utility instead. We can make our own or import the one from Ramda or something.
EDIT: Finished comment after submitting early by accident...
Now I'm definitely going tot try currying, turns out I didn't know much about it 🙂
Really love this community thnx all! 😎