Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var produtos = [
{ nome: 'Café', preco: 10 },
{ nome: 'Açucar', preco: 5 }
];
var somaPreco = produtos.sum(x => x.preco); //15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment