JakubHJ
Reactiflux4y ago
15 replies
JakubH

venus – 18-08 Dec 14

can I make this condition even shorter?
const value = 2;
const v1 = value === 0 ? 0 : 1;
const v2 = !value ? 0 : 1;
Was this page helpful?