Because in Javascript objects can be very complex and have unpredictable structures, sometimes is hard to access their properties. There's a real p...
For further actions, you may consider blocking this person and/or reporting abuse
As far as I know, this is available even in ES2015, is it not?
It's not, it's part of the ES2020 :)
freecodecamp.org/news/javascript-n...
developer.mozilla.org/en-US/docs/W...
I saw it here and since it’s documented here, assumed it’s already present. I see the document was updated only recently and the cross browser stability has still not kicked in.
However I was able to use this in Typescript with es6 build (babel with backward compatibility) atleast 6-8 months back. Queer!
Usually when I read "ES6 build" it means it transpiles to ES6 code, rather than that it is already ES6 compatible. This operator, fortunately, is super easy to transpile back to older syntax, so Typescript has supported it (and the nullish coalescing operator) for a little while now
(Edit for tone, and to add some details)
This puts a lot of things into perspective! :) Thank you!
To be honest, it seemed familiar to me too but now I realize I must know it from Typescript.
Right yes! This must have been typescript and not JS :) anyways, a good list!
Nice feature and post!
Thx :)!
Nice to see this in JS! ☕
This.. this can becone usefull, tanks
Hope it helped :).