juxt
Takes several functions as argument and returns a function that is the juxtaposition of those functions.
- Use
Array.prototype.map()to return afnthat can take a variable number ofargs. - When
fnis called, return an array containing the result of applying eachfnto theargs.