- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
const newRecords = {}
for (const prop in overridenRecords) {
if(Object.prototype.hasOwnProperty.call(overridenRecords, prop)) {
const source = Object.values(allRecords).find((record) => record.id == prop)
newRecords[prop] = {...overridenRecords[prop], ...source}
}
}
return newRecords