Ciao Ninja, grazie per l'aiuto.
Esattamente, intendo qualcosa del genere, dove però l'array joinData deve avere pagato, non_pagato, non_pagabile della stessa lunghezza.
Per esempio, supponiamo di avere solo i tributi: TRIBUTO1, TRIBUTO2, TRIBUTO3, TRIBUTO4.
dovrei avere questo risultato qui:
e poi joinData = [...pagato, ...non_pagato, ...non_pagabile];codice:const pagato =[ { tot:10, tributo: TRIBUTO1 }, { tot:4, tributo: TRIBUTO2 }, { tot:0, tributo: TRIBUTO3 }, {tot:0, tributo: TRIBUTO4 }, ] const non_pagato =[ {tot: 0, tributo: TRIBUTO1 }, { tot:10, tributo: TRIBUTO2 }, {tot: 0, tributo: TRIBUTO3}, { tot:3, tributo: TRIBUTO4}, ]; const non_pagabile =[ {tot: 0, tributo: TRIBUTO1 }, { tot:0, tributo: TRIBUTO2 }, {tot: 0, tributo: TRIBUTO3}, { tot:0, tributo: TRIBUTO4}, ];

Rispondi quotando
