RhysR
Reactiflux4y ago
7 replies
Rhys

✅ – Rhys – 02-32 Oct 5

Not really sure how to google this one, is there a shorthand for ternary operators when you write something like

const x = obj.val ? obj.val : 70


Writing obj.val there twice feels redundant
Was this page helpful?