Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Deno Joins TC39. Parent comment
await chain( Object.keys(envars) .map(envar => `${envar}=${envars[envar]}`) .join(' '), text => `$ ${text}`, text => chalk.dim(text, 'node', args.join(' ')), colored => console.log(colored), )
React example is special though. It feels like very helpful in expr-only context, but in-array ifs and fors would do better there:
<ul> {[ for (v of vs) { const text = foo(v) yield <li>{text}</li> }, if (vs.length == 0) { yield <li>No items</li> }, ]}
There are no comments on this comment yet.
React example is special though. It feels like very helpful in expr-only context, but in-array ifs and fors would do better there: