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