4 ms·
No need to go that far, CoffeeScript can do both: totals = (order.total for order in orders) totals = orders.map (o) -> o.total
by ricardobeat 14y ago
No need to go that far, CoffeeScript can do both:
totals = (order.total for order in orders)
totals = orders.map (o) -> o.total