Check if function is an ES6 class (loose module)
Does not use toString, use Reflect.ownKeys to check it
Function.prototype.toString does not work with Proxy well
$ npm install --save node-is-class
const isClass = require('node-is-class')
console.log(isClass(class {}))
console.log(isClass(function() {}))
$ npm test
MIT