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

0.0.9 • Public • Published

is-class

Check if function is an ES6 class.

License NPM version PRs Welcome

Install

npm install is-class

Usage

const isClass = require('is-class')
 
class F {}
function G() {}
 
console.log(isClass(F)) // true
console.log(isClass(G)) // false

Test

npm test

License

MIT

Package Sidebar

Install

npm i is-class

Weekly Downloads

31,913

Version

0.0.9

License

MIT

Unpacked Size

6.73 kB

Total Files

12

Last publish

Collaborators

  • miguelmota