Why Teaching is The Only Way to Write Better Code
return !!someVar ? ( someArr.length ? someArr[0].someProperty : somethingElse || 'cheese' ) : foo ? getFooBar(foo) : setAndGetBar(foo); This horribly contrived nested ternary statement could be the best way of expressing the solution to your probl...
May 22, 202111 min read168

