0.1.0 • Published 11 years ago
es6-class-util
Licence
—
Version
0.1.0
Deps
0
Vulns
0
Weekly
0
#es6-class-util
Utilities for composing classes when using ES6.
Usage
npm install es6-class-util --save
bind(canididate)
Bind all methods and accessors of the given candidate to itself (in-place) and return the candidate.
Designed for use in babeljs constructor, where the candidate is this.
extend(destination, ...sources)
Copy the members, both values and accessors, from the source objects to the destination object.
First-in wins; existing members on the destination are not overwritten.