4 ms·
… Wouldn't const foo = bar ? {bar} : {}; be both more efficient and more readable?
by masklinn 9y ago
… Wouldn't
const foo = bar ? {bar} : {};
be both more efficient and more readable?
- a13n 9y agoWell typically there are more parameters being set than just the one.