-
Notifications
You must be signed in to change notification settings - Fork 214
Use spread properties instead of Object.assign()/deepmerge #859
Conversation
Now that we require Node 8.3+, we can use spread properties instead of deepmerge in cases where we just need a shallow merge. http://node.green/#ES2018-features-object-rest-spread-properties
I haven't yet looked through the code, but does this also account for |
Ah I forgot to check those too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to wrap arrow function returned objects with parentheses or it will be ambiguous with a function body.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good to me.
Bah I used squash and merge and intended to update the commit message to reflect the new summary/description of this PR (ie |
Now that we require Node 8.3+, we can use spread properties instead of:
http://node.green/#ES2018-features-object-rest-spread-properties