0.1.0 • Published 9 years ago

es6-class-util v0.1.0

Weekly downloads
6
License
-
Repository
-
Last release
9 years ago

#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.