0
I know it’s possible to do this with arrays
, type one array
thus
const array = [[['teste']]]
const [[[variavel]]] = array
variavel // => 'teste'
there is some way to do something similar to objects?
without declaring their key?
const {teste1:{teste2:{teste3}}} = obj test 3 // => 'hi'
only in such a case {{{teste3}}}
?
this object is in invalid format, because every object has the key and value feature
– novic