I am trying to merge two arrays, but in the current code I am only able to access the txs_history array.
getFirstArray(function(txs) {
getSecondArray(function(txs_history) {
txs.concat(txs_history);
res.send(txs_history);
});
});
It seems like there is a scope issue preventing me from accessing the txs variable inside the getSecondArray function. Any suggestions on how to resolve this would be greatly appreciated.
Best Regards,