Map can return new objects with different structures. This reshapes your data without modifying the originals.
const users = [
{ firstName: "Alice", lastName: "Smith" }
];
const formatted = users.map(u => ({
fullName: u.firstName + " " + u.lastName
}));
// [{ fullName: "Alice Smith" }]
Note the parentheses around the object literal to avoid syntax ambiguity.