The ternary part should be as small as possible.
const foo = test ? call(a) : call(b);
const foo = test ? a() : b();
const foo = test ? a + 1 : b + 1;
const foo = test ? Math.min(a, 100) : Math.max(a, 100);
const foo = call(test ? a : b);
const foo = (test ? a : b)();
const foo = (test ? a : b) + 1;
const foo = Math[test ? "min" : "max"](a, 100);
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too