Created
May 26, 2020 00:21
-
-
Save vquaiato/626f9e8b27d3615ca5d4471949ffc3d3 to your computer and use it in GitHub Desktop.
mapping in TS
This file contains hidden or 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
items.map((item) => { | |
return { | |
nome: item.nome, | |
quantidade: item.quantidade, | |
unidade: item.unidade | |
} as Ingrediente | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment