Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created April 14, 2018 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmussak/f84a993112d77b1dbe3250f09c14f118 to your computer and use it in GitHub Desktop.
Save vmussak/f84a993112d77b1dbe3250f09c14f118 to your computer and use it in GitHub Desktop.
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