django-vue3-admin-web/node_modules/is-class-hotfix
2025-10-20 21:21:14 +08:00
..
test 初始化 2025-10-20 21:21:14 +08:00
.editorconfig 初始化 2025-10-20 21:21:14 +08:00
.gitattributes 初始化 2025-10-20 21:21:14 +08:00
bower.json 初始化 2025-10-20 21:21:14 +08:00
CHANGELOG.md 初始化 2025-10-20 21:21:14 +08:00
is-class.js 初始化 2025-10-20 21:21:14 +08:00
LICENSE.md 初始化 2025-10-20 21:21:14 +08:00
package.json 初始化 2025-10-20 21:21:14 +08:00
README.md 初始化 2025-10-20 21:21:14 +08:00

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