Posts by VictorSalles • 23 points
4 posts
-
0
votes0
answers22
viewsQ: Update of JS global variables
I have the following function: async function openModal() { // função chamada por um botão buscarPessoas(); $('#Mymodal').modal({ backdrop: "static", keyboard: false }) } async function…
-
-1
votes1
answer91
viewsQ: Group array with javascript
I have a backend application in Node that returns the following array: let res= [ { codigo: '0341', codigo_1: '0320', visao: '14', total: 24, data: '201502' }, { codigo:'0341', codigo_1:'0320',…
-
1
votes1
answer105
viewsQ: Group JSON using javascript reduce()
I used reduce to group my Json, but I need to group by more than 1 parameter to make the group correctly. Follows the function used: > this.totalSpecific = obj.reduce(function (acumulador, valor)…
-
0
votes1
answer53
viewsQ: Grouping of JSON
Hello, Can someone help me with this problem? I have a return of the API with multiple record in JSON format, for example: [ {data:“01/02/2010”, nome:“vivo”, janela:“00-02”, tipo:“ligado”},…