.set array js code example Example: js new array from new set return Array.from(new Set(this.posts.map(e => e.category)))