Skip to content

kk0829/complete-assign

Repository files navigation

complete-assign

Build Status

The Object.assign() method only copies enumerable and own properties from a source object to a target object. It uses [[Get]] on the source and [[Set]] on the target, so it will invoke getters and setters. Therefore it assigns properties versus just copying or defining new properties. This may make it unsuitable for merging new properties into a prototype if the merge sources contain getters. For copying property definitions, including their enumerability, into prototypes Object.getOwnPropertyDescriptor() and Object.defineProperty() should be used instead.

About

completeAssign

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published