Vanna Health: Merge Objects
unknown
typescript
9 months ago
271 B
31
Indexable
const users = [
{ "id": 1, "name": "Vanna" },
{ "id": 2, "name": "Health" }
];
const scores = [
{ "userId": 1, "score": 95 },
{ "userId": 2, "score": 88 }
];
//output
[
{ "id": 1, "name": "Vanna", "score": 95 },
{ "id": 2, "name": "Health", "score": 88 }
]
Editor is loading...
Leave a Comment