component-inherit

Prototype inheritance utility.

Usage no npm install needed!

<script type="module">
  import componentInherit from 'https://cdn.skypack.dev/component-inherit';
</script>

README

inherit

Prototype inheritance utility.

Installation

$ component install component/inherit

Example

var inherit = require('inherit');

function Human() {}
function Woman() {}

inherit(Woman, Human);

License

MIT