es6-class-util

0.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i es6-class-util

Weekly Downloads

3

Version

0.1.0

License

none

Last publish

Collaborators

  • bholloway