UNPKG

clone-class

Version:

Clone an ES6 Class as Another Class Name for Isolating Class Static Properties.

15 lines 349 B
export class FixtureClass { constructor(i, j) { this.i = i; this.j = j; } static staticMethod(n) { this.staticNumber = n; } sum() { return this.i + this.j + this.constructor.staticNumber; } } FixtureClass.staticNumber = 0; export default FixtureClass; //# sourceMappingURL=fixture-class.js.map