Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove redundant object from Object.assign example #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2017
Merged

Remove redundant object from Object.assign example #27

merged 1 commit into from
Jan 6, 2017

Conversation

connec
Copy link
Contributor

@connec connec commented Jan 5, 2017

In the "good" Object.assign example, the initial new object is redundant as the defaults are also specified in a new object.

This is a bit pedantic, and doesn't change the semantics of the example, just removes an unnecessary object creation.

Note: I definitely wouldn't have bothered with this if I didn't make #4, and was looking at it anyway 😄

In the "good" `Object.assign` example, the initial new object is redundant as the defaults are also specified in a new object.

This is a bit pedantic, and doesn't change the semantics of the example, just removes an unnecessary object creation.
@ryanmcdermott ryanmcdermott merged commit 11b7271 into ryanmcdermott:master Jan 6, 2017
@ryanmcdermott
Copy link
Owner

Oh cool! I tested this out and it doesn't look like it mutates the original config, which is good. Thanks Chris!

@connec connec deleted the patch-1 branch January 6, 2017 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants