So it uses ES.Next I must assume that almost every...
# suitescript
i
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
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
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
👍 1