lhl 6ff0e96ad3 8-4-1 vor 1 Jahr
..
test 6ff0e96ad3 8-4-1 vor 1 Jahr
.editorconfig 6ff0e96ad3 8-4-1 vor 1 Jahr
.gitattributes 6ff0e96ad3 8-4-1 vor 1 Jahr
CHANGELOG.md 6ff0e96ad3 8-4-1 vor 1 Jahr
LICENSE.md 6ff0e96ad3 8-4-1 vor 1 Jahr
README.md 6ff0e96ad3 8-4-1 vor 1 Jahr
bower.json 6ff0e96ad3 8-4-1 vor 1 Jahr
is-class.js 6ff0e96ad3 8-4-1 vor 1 Jahr
package.json 6ff0e96ad3 8-4-1 vor 1 Jahr

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