Appearance
iteratorObj(obj)
1.0.6
obj
(Object): 具有迭代属性的对象。
const obj = { a: 1, b: '2', c: 3 }; iteratorObj(obj); const [...test] = obj; console.log(test) //=>[1,2,3] for(const ele of obj){ console.log(ele); } //1 //2 //3