$ cnpm install @protobufjs/extend
Provides minimal drop-in inheritance for classes.
function ParentClass() {
}
ParentClass.extend = require("@protobufjs/extend");
function ChildClass() {
}
var ChildPrototype = ParentClass.extend(ChildClass); // also inherits .extend itself
function GrandchildClass() {
}
var GrandchildPrototype = ChildClass.extend(GrandchildClass); // and so it goes forever
License: BSD 3-Clause License
Copyright 2013 - present © cnpmjs.org | Home |