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" },
Using JavaScript please, thank you! Implement a JS function to merge two arrays of objects on uuid, but first has uuid a
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am