You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
249 B

7 years ago
  1. # inherit
  2. Prototype inheritance utility.
  3. ## Installation
  4. ```
  5. $ component install component/inherit
  6. ```
  7. ## Example
  8. ```js
  9. var inherit = require('inherit');
  10. function Human() {}
  11. function Woman() {}
  12. inherit(Woman, Human);
  13. ```
  14. ## License
  15. MIT