2.0.0 • Published 7 years ago
invariate
Licence
Unlicense
Version
2.0.0
Deps
0
Size
8 kB
Vulns
0
Weekly
0
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.