Using JavaScript please, thank you! Implement a JS function to merge two arrays of objects on uuid, but first has uuid a
Posted: Sun Jul 10, 2022 11:31 am
Using JavaScript please, thank you!
Implement a JS function to merge two arrays of objects on uuid,but first has uuid and name, second has uuid and role.
With the not existing property, fill with null.
Sort according to uuid after merge.
const first = [ { uuid: 2, name: { uuid: 5, name: { uuid: 3, name: ]; "test" }, "test5" }, "test3" } const second = [ { uuid: 6, role: { uuid: 1, role: { uuid: 2, role: "associate" } ]; "pm" }, { uuid: 4, role: "engineer" }, "manager" },
Implement a JS function to merge two arrays of objects on uuid,but first has uuid and name, second has uuid and role.
With the not existing property, fill with null.
Sort according to uuid after merge.
const first = [ { uuid: 2, name: { uuid: 5, name: { uuid: 3, name: ]; "test" }, "test5" }, "test3" } const second = [ { uuid: 6, role: { uuid: 1, role: { uuid: 2, role: "associate" } ]; "pm" }, { uuid: 4, role: "engineer" }, "manager" },