I have to do these checks before assing the value of object props:
if (Store != undefined) {
if (Store.someItem != undefined) {
if (Store.someItem['title'] != undefined) {
title = Store.someItem['title']
}
}
}
Is there short way to do this ?
For example: the last check we could do like this:
title = Store.someItem['title'] || ''
Is it possible to make all these checks in short ways. Or may be you could give advise about the whole concept and how to avoid this situation when I need to do these checks ?