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