re: Map, Filter, Reduce vs For Loops (syntax) VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Ternary operator it's still an if statement in disguise.
 

Not exactly, an if statement doesn't evaluate to a value, in other words, it doesn't return anything.
The ternary evaluates to something.
medium.com/javascript-scene/nested...

code of conduct - report abuse