JSJS LanguageObjectsetsets are iterableOn this pagesets are iterablesets can be converted to Array using Spread Operator const arr = [...new Set([1,1,2,3])]References