showing results for - "add multiple elements to set javascript"
Olga
25 Mar 2018
1const mySet = new Set([1,2,3,4])
2const additionalSet = [5,6,7,8,9]
3mySet = new Set([...mySet, ...additionalSet])