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...
antman-does-software.com11 min read