blob: a7932b337802898e43a4b8877d492958741b1f72 [file] [log] [blame]
export default {
mergeArray (a, b, prop) {
return b.map((itemb) => {
let srcItem = a.find(itema => itema[prop] === itemb[prop])
return srcItem? { ...srcItem, ...itemb } : itemb
})
}
}