0.0.1 • Published 2 years ago
js-class-extender v0.0.1
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"
}
0.0.1
2 years ago