▲ Nested Ternaries are Great at medium.com▼8 up and 2 down, posted by ericelliott 2524 days ago 4 comments
buster 2523 days ago. link parent 1 point ▲ ▼I included the snippet only to highlight how, in the real world, ternaries are used to execute statements rather than simply express values. FWIW, in this case, the final `null` needs to be replaced with `factory(global)` to work as expected.