Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Pipe Operator (|>) For JavaScript. Parent comment
You can even use an array if you don't need to peek the value in the middle of a chain of operations
Example:
createChain( Object.entries(envars) .map(([key, value]) => `${key}=${value}`) .join(' ') ) .map(keys => `$ ${keys}`) .map(pattern => chalk.dim(%, 'node', args.join(' '))) .use(line => console.log(line))
There are no comments on this comment yet.
You can even use an array if you don't need to peek the value in the middle of a chain of operations
Example:
In each step, you can name the intermediate result accordingly to it's meaning, should be more readable than calling it %