Lawsun d230cfbce0 first commit hai 1 ano
..
test d230cfbce0 first commit hai 1 ano
.editorconfig d230cfbce0 first commit hai 1 ano
.gitattributes d230cfbce0 first commit hai 1 ano
CHANGELOG.md d230cfbce0 first commit hai 1 ano
LICENSE.md d230cfbce0 first commit hai 1 ano
README.md d230cfbce0 first commit hai 1 ano
bower.json d230cfbce0 first commit hai 1 ano
is-class.js d230cfbce0 first commit hai 1 ano
package.json d230cfbce0 first commit hai 1 ano

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