const isClass = fn => { if ( typeof fn === 'function' && fn.toString().includes('class') ) { return true } return false };