I should know if property is property or not, I just like the examples, if I < P> is an example object
var foo = {"bar": {"foobar": {"barfoo": 1}}} and I have to check whether barfoo is present, but first I have to check that there are all other properties, because it can happen or not if any other function is running. I can not really reduce the level of this structure, so there is no alternative. Currently I am doing something like this:
var d = Foo; If (D) {d = d.bar; If (d) {d = d. Fobar; If (D) {d = d.barfoo; If (d) {console.log (d); More Strong Solution: Check
No comments:
Post a Comment