simple-extend

A simple 'extend' helper, adapted from the Backbone.js library.

Usage no npm install needed!

<script type="module">
  import simpleExtend from 'https://cdn.skypack.dev/simple-extend';
</script>

README

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