create-clone-class
The module create new class as a clone from your defined ES2015 class. It's very rare production case, but in some test case it can help where you want to isolate your tests.
Installation
npm i create-clone-class --save
Usage
You have some common class. For example:
;{thisvariable = variable;}{return thisvariable;}// create cloneconst CloneA = ;// modify originalAprototype 'override original';const clone = 'clone';const original = 'original';clonemethod; // returns 'clone';originalmethod; // returns 'override original';