Object.assign()
Update elements of the given Object.
Description
Update target with update. If target and updated have matching keys, the matching target key value is updated. If update doesn’t exist in target, the update key:value pair is added to target.
The assign()
method doesn’t remove fields that have a value of null
.
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!