|
|
há 2 anos atrás | |
|---|---|---|
| .. | ||
| test | há 2 anos atrás | |
| .editorconfig | há 2 anos atrás | |
| .gitattributes | há 2 anos atrás | |
| CHANGELOG.md | há 2 anos atrás | |
| LICENSE.md | há 2 anos atrás | |
| README.md | há 2 anos atrás | |
| bower.json | há 2 anos atrás | |
| is-class.js | há 2 anos atrás | |
| package.json | há 2 anos atrás | |
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