I have some objects that I'm trying to merge them together in Node.js First object is in a format like this
{ ids : [id, id, id, ....]}
Rest of the object is in a format like this
{ postcode: '' , lat: '', lon: ''}, {postcode: '' , lat: '', lon: ''},....
I need to merger them in a way that looks like a format similar to this
{ id: '', postcode: '', lat: '', lon:''}
I was wondering would it be possible to do that in nodejs?
idandlat,lonwithoutpostcode?{id: , postcode:, lat:, lon:,}....ids with an array ofresultsfrom a database? If so, depending on the database, the objects can already contain theidif you tweak the query parameters.