es6-class-prototype
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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] }

Package Sidebar

Install

npm i es6-class-prototype

Weekly Downloads

3,668

Version

2.0.0

License

ISC

Unpacked Size

19 kB

Total Files

16

Last publish

Collaborators

  • bluelovers