mirror of https://github.com/jkjoy/sunpeiwen.git
5d2d87c740 | ||
---|---|---|
.. | ||
test | ||
.editorconfig | ||
.gitattributes | ||
CHANGELOG.md | ||
LICENSE.md | ||
README.md | ||
bower.json | ||
is-class.js | ||
package.json |
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