Page 1 of 1

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
by answerhappygod
Using JavaScript please, thank you!
Using Javascript Please Thank You Implement A Js Function To Merge Two Arrays Of Objects On Uuid But First Has Uuid A 1
Using Javascript Please Thank You Implement A Js Function To Merge Two Arrays Of Objects On Uuid But First Has Uuid A 1 (8.28 KiB) Viewed 60 times
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" },