Socket
Book a DemoInstallSign in
Socket

es6-class-util

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-class-util

Utilities for composing classes when using ES6.

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 05 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts