Open coolaj86 opened 2 years ago
This is for readability.
We don't want lots of symbols and we don't want clearly distinct, different things happening all together.
let x = (thing1(), thing2());
if (arr.some(function (el) { return el.foo; })) { // do stuff }
arr.push(await doStuff());
thing1(); let x = thing2();
let hasFoo = arr.some(function (el) { return el.foo; }); if (hasFoo) { // do stuff }
let result = await doStuff(); arr.push(result);
This is for readability.
We don't want lots of symbols and we don't want clearly distinct, different things happening all together.
Bad Examples
Good Examples