Created
April 14, 2018 15:16
-
-
Save vmussak/f84a993112d77b1dbe3250f09c14f118 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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