create a set from array in javascript code example
Example 1: create set from list javascript
var arr = [55, 44, 65];
var set = new Set(arr);
Example 2: js new array from new set
return Array.from(new Set(this.posts.map(e => e.category)))
var arr = [55, 44, 65];
var set = new Set(arr);
return Array.from(new Set(this.posts.map(e => e.category)))