Posts by Luciano Nascimento • 11 points
2 posts
-
0
votes2
answers343
viewsA: Check equal values in an Array and add them
You can do it that way: var project = [ {partNumber: 1234, project: 'X19', gap: 30}, {partNumber: 1234, project: 'X19', gap: 40}, {partNumber: 5678, project: 'X09', gap: 10}, {partNumber: 5678,…
-
1
votes1
answer202
viewsA: How to bring a BD result with NODE.js into an array
See if that helps you: var rota = []; var metrica = []; result.map(function(item){ rota.push(item.NomeColuna1); metrica.push(item.NomeColuna2); });