Skip to content

Instantly share code, notes, and snippets.

View Mcklem's full-sized avatar
🏠
Working

Jesús García Urtiaga Mcklem

🏠
Working
  • Madrid
View GitHub Profile
@JamieMason
JamieMason / pluck-unique-values-from-array-of-javascript-objects.md
Created September 14, 2018 08:14
Pluck Unique Values from Array of Javascript Objects

Pluck Unique Values from Array of Javascript Objects

Implementation

const pluck = key => array => Array.from(new Set(array.map(obj => obj[key])));

Usage