Created
March 4, 2018 02:00
-
-
Save dance2die/815fe01e43ab0bc048f341d150475330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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