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.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| test | 5 years ago | |
| .editorconfig | 5 years ago | |
| .gitattributes | 5 years ago | |
| CHANGELOG.md | 5 years ago | |
| LICENSE.md | 5 years ago | |
| README.md | 5 years ago | |
| bower.json | 5 years ago | |
| is-class.js | 5 years ago | |
| package.json | 5 years 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