util.inherits without the cruft
MIT License
Like util.inherits but without any cruft. Aimed at ES5 (IE 10+), does not pollute classes with super_
, and uses the same code path in Node and the browser.
var inherits = require('inherit-class')
function MyClass() {
BaseClass.call(this)
}
inherits(MyClass, BaseClass)
npm install inherit-class --save
inherits(class, superClass)
Overrides the prototype of class
so that it inherits from superClass
.
MIT, see LICENSE.md for details.