SyntaxFix
Write A Post
Hire A Developer
Questions
Using Set
this.items = new Set(); this.items.add(1); this.items.add(2); this.items.add(1); this.items.add(2); console.log(Array.from(this.items)); // [1, 2]