var x = { "a": 1, "b": 3 }
const { a } = x
console.log(a)
For the above code output is 1
as expected.
var x = { "a.0.0": 1, "b": 3 }
const { a.0.0 } = x
console.log(a)
but when the key has dot character in it, the output is undefined
. How can I destructure when the key has dot characters in it?