$ npm install is-class
Check if function is an ES6
class
.
npm install is-class
const isClass = require('is-class')
class F {}
function G() {}
console.log(isClass(F)) // true
console.log(isClass(G)) // false
npm test
© 2010 - cnpmjs.org x YWFE | Home | YWFE