Skip to content
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

Use native Object.assign instead of xtend #115

Open
jimmywarting opened this issue Oct 15, 2018 · 1 comment
Open

Use native Object.assign instead of xtend #115

jimmywarting opened this issue Oct 15, 2018 · 1 comment
Labels
power-assert-v2 features and bug fixes in power-assert v2

Comments

@jimmywarting
Copy link

xtend can easily be replaced with Object.assign

This reduce the dependencies and possible also avoid duplicated versions where some package don't use the same version range for the xtend package

// immutable
Object.assign({}, a, b)

// mutable
Object.assign(a, b)
@twada
Copy link
Member

twada commented Oct 27, 2018

@jimmywarting Thanks! I'll replace it in power-assert v2, dropping support for super-old environments.

@twada twada added the power-assert-v2 features and bug fixes in power-assert v2 label Oct 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
power-assert-v2 features and bug fixes in power-assert v2
Projects
None yet
Development

No branches or pull requests

2 participants