Variable length currying in JavaScript
medium.com