$ gnpm 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
Copyright 2013 - present © cnpmjs.org | Home |