js-class-extender
v0.0.1
Published
Extend javascript classes
Downloads
2
Readme
How to use
const { extend } = require("extender")
const Class = require("somewherethathasclasses")
const newClass = extend(Class, { newThing: "yes", newThing1: "yes1" })({ thing: 1 } /*options for the old class*/)
And new class will come out as:
{
oldthing: "oldthing",
secondoldthing: "oldthing2",
newThing: "yes",
newThing1: "yes1"
}