All Projects → miguelmota → is-class

miguelmota / is-class

Licence: MIT license
Check if function is an ES6 class.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].