标签: javascript arrays object ecmascript-6
如何从数组中破坏值?
const ?? = { text: ['some text'] };
答案 0 :(得分:4)
const { text: [someText]} = { text: ['some text'] }; console.log(someText);