Javascript Array create from Set

Introduction

Array from a Set

const set = new Set(['foo', 'bar', 'baz', 'foo']);
const a = Array.from(set);
console.log(a);//w w  w.  j  a va  2  s.  c  om



PreviousNext

Related