invariate
v2.0.0
Published
Functional wrapper that supports objects-to-multiple-calls
Downloads
14
Readme
Invariate
If
var f = invariate(function(name,value){})
then f
can be called as
f(name,value)
or as
f({name1:value1,name2:value2,...})
in which case the function will be called for each (name,value) pair.
Additional parameters are passed as-is.
The return value is an array containing the return values of each function calls.