Skip to content

Instantly share code, notes, and snippets.

@dance2die

dance2die/mapDemo.js

Created Feb 24, 2018
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