Is there a way to get rid of this type of checks for objects:
reader && reader.firstProp && readerSecondProp && readerThirdProp && doSomething
Object looks like this:
const reader = {firstProp :{readerSecondProp:{readerThirdProp: 'yeeee'}}}
or
const reader = {}
I want to somewthing like this
proporyExist(readerThirdProp) && do something