关于展开运算符
来源:8-5 【连环问】手写一个JS函数,实现数组深度扁平化

一只小木马
2022-08-17
老师我在做题的时候遇到这样一道题就是:
const str=“12345”;
const arr=[1,2,3,4,5];
const obj = {a:1,b:2,c:3,d:4,e:5};
提问是怎么样才能使[…str] […arr] […obj]都为[10,20,30]
写回答
1回答
-
双越
2022-08-17
没懂。哪儿有 10 20 30 啊
022024-01-09
相似问题