tanyanfei 2effbd93de init 4 years ago
..
test 2effbd93de init 4 years ago
.editorconfig 2effbd93de init 4 years ago
.gitattributes 2effbd93de init 4 years ago
CHANGELOG.md 2effbd93de init 4 years ago
LICENSE.md 2effbd93de init 4 years ago
README.md 2effbd93de init 4 years ago
bower.json 2effbd93de init 4 years ago
is-class.js 2effbd93de init 4 years ago
package.json 2effbd93de init 4 years ago

README.md

is-class

Check if function is an ES6 class.

Install

npm install is-class
bower install is-class

Usage

var isClass = require('is-class');

class F {}
function G() {}

console.log(isClass(F)); // true
console.log(isClass(G)); // false

Test

npm test

License

MIT