hexo/node_modules/is-class-hotfix
jkjoy 5d2d87c740 20230925 2023-09-25 15:58:56 +08:00
..
test 20230925 2023-09-25 15:58:56 +08:00
.editorconfig 20230925 2023-09-25 15:58:56 +08:00
.gitattributes 20230925 2023-09-25 15:58:56 +08:00
CHANGELOG.md 20230925 2023-09-25 15:58:56 +08:00
LICENSE.md 20230925 2023-09-25 15:58:56 +08:00
README.md 20230925 2023-09-25 15:58:56 +08:00
bower.json 20230925 2023-09-25 15:58:56 +08:00
is-class.js 20230925 2023-09-25 15:58:56 +08:00
package.json 20230925 2023-09-25 15:58:56 +08:00

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