g-apply
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i g-apply

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

3.58 kB

Total Files

5

Last publish

Collaborators

  • djansyle