Data Merging

Write a function that merges multiple objects or data rows that belong to the same entity. Combine properties from different sources into a single object.

Examples
Input: [{"id":1,"name":"Alice"},{"id":1,"email":"alice@test.com"}]
Output: {"id":1,"name":"Alice","email":"alice@test.com"}
Hints

Data Merging

Implement a function to merge rows of data belonging to the same user.