insert-module-globals icon indicating copy to clipboard operation
insert-module-globals copied to clipboard

Use native Object.assign instead of xtend

Open jimmywarting opened this issue 7 years ago • 1 comments

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)

jimmywarting avatar Oct 16 '18 11:10 jimmywarting

I appreciate the commitment but please don't open issues for every browserify package that uses xtend. This module is part of browserify so its appreach will be the same as the main browserify package. Until there is a particularly good reason to drop support for Node < 4 it won't happen. It takes no maintenance effort to use xtend so I really don't see a reason to move away.

goto-bus-stop avatar Oct 16 '18 11:10 goto-bus-stop