lhl 6ff0e96ad3 8-4-1 | il y a 1 an | |
---|---|---|
.. | ||
test | il y a 1 an | |
.editorconfig | il y a 1 an | |
.gitattributes | il y a 1 an | |
CHANGELOG.md | il y a 1 an | |
LICENSE.md | il y a 1 an | |
README.md | il y a 1 an | |
bower.json | il y a 1 an | |
is-class.js | il y a 1 an | |
package.json | il y a 1 an |
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