Skip to content

Use Object.assign if possible#593

Merged
nfischer merged 3 commits intomasterfrom
object-assign
Dec 7, 2016
Merged

Use Object.assign if possible#593
nfischer merged 3 commits intomasterfrom
object-assign

Conversation

@freitagbr
Copy link
Copy Markdown
Contributor

Fixes #592

Copy link
Copy Markdown
Member

@nfischer nfischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

src/common.js Outdated

// objectAssign(target_obj, source_obj1 [, source_obj2 ...])
// Ponyfill for Object.assign
// Polyfill for Object.assign
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: isn't this technically still a ponyfill since it doesn't modify the global Object? Doesn't matter either way to me, just curious on the terminology. Either way, I agree with the implementation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, I had no idea that was a thing. Let me change it back but put quotes around it.

@nfischer
Copy link
Copy Markdown
Member

nfischer commented Dec 6, 2016

LGTM

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