|
|
7 months ago | |
|---|---|---|
| .. | ||
| test | 10 months ago | |
| .editorconfig | 10 months ago | |
| .gitattributes | 10 months ago | |
| CHANGELOG.md | 10 months ago | |
| LICENSE.md | 10 months ago | |
| README.md | 10 months ago | |
| bower.json | 10 months ago | |
| is-class.js | 10 months ago | |
| package.json | 7 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