Is there a easier way to check an deep object's inner properties?
Unanswered
Virginia's Warbler posted this in #help-forum
Virginia's WarblerOP
This is more of a plain JS question. But lets say if I have deeply nested obejcts like xxx.yyy.zzz.aaa
I can do a series of checks to see: if xxx have yyy && if xxx.yyy have zzz && if xxx.yyy.zzz have aaa
But is there an easy way?
I can do a series of checks to see: if xxx have yyy && if xxx.yyy have zzz && if xxx.yyy.zzz have aaa
But is there an easy way?
3 Replies
@Virginia's Warbler This is more of a plain JS question. But lets say if I have deeply nested obejcts like xxx.yyy.zzz.aaa
I can do a series of checks to see: if xxx have yyy && if xxx.yyy have zzz && if xxx.yyy.zzz have aaa
But is there an easy way?
Why do you want to check tho? I can recommend something based on that
xxx?.yyy?.zzz?.aaa