es6-class-prototype
v2.0.0
Published
get prototype from es6 class, like old way
Downloads
14,417
Maintainers
Readme
es6-class-prototype
get prototype from es6 class, like old way
npm install es6-class-prototype
demo
import classPrototype from 'es6-class-prototype';
class A
{
split()
{
return true;
}
}
console.log(A.prototype);
// => A {}
console.log(classPrototype(A));
// => A { constructor: [Function: A], split: [Function: split] }