Nepotistic Pontifex Maximus
Have ideas to improve npm?Join in the discussion! »

simple-extend

0.1.0 • Public • Published

simple-extend.js

A simple "extend" mechanism, adapted from the Backbone.js library.

Build Status

Use:

MyObject.extend = require('simple-extend');
 
var SubObject = MyObject.extend(protoProps, [classProps]);

If a static extended method exists on the parent object, it will be called at extension time, passing the child object as an argument.

License

MIT

Keywords

none

Install

npm i simple-extend

DownloadsWeekly Downloads

185

Version

0.1.0

License

none

Last publish

Collaborators

  • avatar