
Set()Array.from과 spread syntax인 ...을 사용 가능하다.const x = new Set([ 1, 2, 3, 4 ]);const y = Array.from(x);console.log(y); // = [ 1, 2, 3, 4 ]const z = [ ...x ];console.log(z); // = [ 1, 2, 3, 4 ] Met()map도 Array.from과 spread syntax(...)의 사용이 가능하다.const map = new Map([[ 1, 'one' ],[ 2, 'two' ]]);const newArr1 = [ ...map ]; const newArr2 = Array.from( map );console.log(newArr1); // [[ 1, 'one' ],..