You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
侯晓宇
0cb2601919
|
4 weeks ago | |
---|---|---|
.. | ||
test | 4 weeks ago | |
.editorconfig | 4 weeks ago | |
.gitattributes | 4 weeks ago | |
CHANGELOG.md | 4 weeks ago | |
LICENSE.md | 4 weeks ago | |
README.md | 4 weeks ago | |
bower.json | 4 weeks ago | |
is-class.js | 4 weeks ago | |
package.json | 4 weeks ago |
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