Preview:
var faturasFechadas = [
    { 
        "valorFatura": {
            "valor": -1665.46, 
            "moeda": "R$" 
            
        },
        "dataFechamento": "2025-03-26T00:00:00", 
    },
    { 
        "valorFatura": {
            "valor": -1665.46, 
            "moeda": "R$" 
            
        }, 
        "dataFechamento": "2025-03-26T00:00:00"
    }
];
    
var detalhesFatura = {
    "numeroCartao": "xxxxxxxxxxxx1193",
    "detalhesLancamentoParcela": {
        "quantidadeParcelas": 12,
        "numeroParcelaTransacao": 7
        
    },
    "dataVencimentoFatura": "2025-03-01T00:00:00"
}

var result = faturasFechadas.map(function(el) {
    var o = Object.assign({}, el);
    o.detalhesFatura = detalhesFatura;
    return o;
});

console.log(JSON.stringify(result));
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter