Skip to content

Instantly share code, notes, and snippets.

@cnmoro
Created October 16, 2019 17:04
Show Gist options
  • Save cnmoro/105d5af394902d63523cbb3cf0d52d84 to your computer and use it in GitHub Desktop.
Save cnmoro/105d5af394902d63523cbb3cf0d52d84 to your computer and use it in GitHub Desktop.
JS Map Distinct
let uniqueValues = array.map(v => v.property)
.filter((value, index, self) => self.indexOf(value) === index);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment