JavaScript partial functions
Consider (https://jsfiddle.net/h9jz2yfs/)
// currying
function who(func) {
let profile='';
return function(name) {
profile+=`my name is ${name} `;
return function(age) {
profile+=`and i'm ${age} years old `;
return f...
loganlee.hashnode.dev1 min read