Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created March 4, 2018 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dance2die/815fe01e43ab0bc048f341d150475330 to your computer and use it in GitHub Desktop.
Save dance2die/815fe01e43ab0bc048f341d150475330 to your computer and use it in GitHub Desktop.
const distinctQuantityOrders = [...new Set(orders.map(order => order.quantity))];
const distinctQuantityOrders = Array.from(new Set(orders.map(order => order.quantity)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment