So it uses ES.Next I must assume that almost everything can be used. Im just asking because I just found about optional chaining and that is for es2020 I would test it myself but I cant right now 😕
m
mdr
09/25/2020, 4:53 PM
I've tried this a couple months back and didn't find any success. Not that it couldn't have been implemented recently, but doubt it.
What I've used instead is:
const variable = obj && obj.param && obj.param.value;
i
irurzo
09/25/2020, 9:06 PM
Yeah, thats what I also do but wanted to change now that I saw this option, but I guess we’ll have to wait haha