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