Re:New-less JavaScript (2013)
by insin on Thursday March 12, 2015 @05:17AM
(#9189728)
As long as the constructor doesn't take multiple arguments [1], otherwise:
[1] http://speakingjs.com/es5/ch15.html#_pitfall_unexpected_opti...
[ Parent
| on HN ]
I find it useful to have `unary` and `apply` around:
[1,2,3].map(unary(User))
[[1,2],[3,4],[5,6]].map(apply(User))