|
2 months ago | |
---|---|---|
.. | ||
test | 2 months ago | |
.editorconfig | 2 months ago | |
.gitattributes | 2 months ago | |
CHANGELOG.md | 2 months ago | |
LICENSE.md | 2 months ago | |
README.md | 2 months ago | |
bower.json | 2 months ago | |
is-class.js | 2 months ago | |
package.json | 2 months ago |
Check if function is an ES6 class.
npm install is-class
bower install is-class
var isClass = require('is-class');
class F {}
function G() {}
console.log(isClass(F)); // true
console.log(isClass(G)); // false
npm test
MIT