npm

Need private packages and team management tools?Check out npm Orgs. »

is-class

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

install

npm i is-class

Downloadsweekly downloads

20,297

version

0.0.9

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability