What is the best way to mutate an object?
For example: If I have something like user.email = email || user.email
I have to update the email property of user if email exists, otherwise leave it untouched.
For example: If I have something like user.email = email || user.email
I have to update the email property of user if email exists, otherwise leave it untouched.