cmy a6e36702ec 2023-3-1 2 년 전
..
test a6e36702ec 2023-3-1 2 년 전
.editorconfig a6e36702ec 2023-3-1 2 년 전
.gitattributes a6e36702ec 2023-3-1 2 년 전
CHANGELOG.md a6e36702ec 2023-3-1 2 년 전
LICENSE.md a6e36702ec 2023-3-1 2 년 전
README.md a6e36702ec 2023-3-1 2 년 전
bower.json a6e36702ec 2023-3-1 2 년 전
is-class.js a6e36702ec 2023-3-1 2 년 전
package.json a6e36702ec 2023-3-1 2 년 전

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