You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
249 B
Markdown
25 lines
249 B
Markdown
5 years ago
|
# inherit
|
||
|
|
||
|
Prototype inheritance utility.
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
```
|
||
|
$ component install component/inherit
|
||
|
```
|
||
|
|
||
|
## Example
|
||
|
|
||
|
```js
|
||
|
var inherit = require('inherit');
|
||
|
|
||
|
function Human() {}
|
||
|
function Woman() {}
|
||
|
|
||
|
inherit(Woman, Human);
|
||
|
```
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT
|