Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created February 24, 2018 22:39
Embed
What would you like to do?
function mapDemo(orders) {
const quantities = orders.map(order => order.quantity);
quantities.forEach(quantity => console.log(`Quantity: ${quantity}`));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment