@ManavMisra/

SteepLightheartedDisassembly

Nodejs

No description

fork
loading
Files
  • index.js
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const trace = label => msg => console.log(label, msg);

trace('hello')('world');

const inc = x => x + 1;
const double = x => x * 2;

const pipe = (...fns) => init => fns.reduce((composite, fn) => fn(composite), init);

const test = (...fns) => console.log(fns);

test(inc, double);

node v10.16.0