<分区>
如何从数组中析构一个值?
const ?? = { text: ['some text'] };
<分区>
如何从数组中析构一个值?
const ?? = { text: ['some text'] };
最佳答案
const { text: [someText]} = { text: ['some text'] };
console.log(someText);
关于javascript - 组合数组和对象解构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56030520/