Farzad YZ
1 min readJan 22, 2017

--

Not so true. consider the case

var i = 0
if (Math.random() > 0.5) i++

This situation can not be replaced with a ternary operator that easily and beautifuly.
What I use personaly is conditional programming va && and ||

The above case could be Math.random() > 0.5 && i++

--

--

Farzad YZ

Senior Software Engineer @epicgames . formerly @futurice . Javascript, Typescript, React(native), International speaker. UI engineering, Statecharts, Reactivity