Ternary Operator Utilization

How to condense 6-line mutable if/else blocks into single-line ternary expressions and nullish coalescing operators (condition ? a : b, a ?? b), cutting conditional statement tokens by 55%.

alivirgo Updated 3 repo stars

File contents

alivirgo/Major-AI-Skills commit bce17abca6

Frequently asked questions

npx get-skill add alivirgo/ternary-operator-utilization