kaka cc403a83fd 热更功能跑通 5 년 전
..
test cc403a83fd 热更功能跑通 5 년 전
.editorconfig cc403a83fd 热更功能跑通 5 년 전
.gitattributes cc403a83fd 热更功能跑通 5 년 전
.npmignore cc403a83fd 热更功能跑通 5 년 전
CHANGELOG.md cc403a83fd 热更功能跑通 5 년 전
LICENSE.md cc403a83fd 热更功能跑通 5 년 전
README.md cc403a83fd 热更功能跑通 5 년 전
bower.json cc403a83fd 热更功能跑通 5 년 전
is-class.js cc403a83fd 热更功能跑通 5 년 전
package.json cc403a83fd 热更功能跑通 5 년 전

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

License

MIT