0.1.0 • Published 11 years ago
es6-class-util v0.1.0
#es6-class-util
Utilities for composing classes when using ES6.
Usage
npm install es6-class-util --savebind(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.