g-apply
v0.0.2
Published
Apply the parameters synchronously to all the functions, and returns the result of the last function
Downloads
5
Readme
g-apply
A simple utility that applies the, function's parameter to series of function serially and returns only the last function result.
Ex:
function foo(num) {
console.log('just logging foo: ', num);
}
function bar(num) {
return num + 2;
}
console.log(apply([foo, bar])(5));
// just logging foo: 5
// 7