isclass ββ’β isarrow ββ’β isasync
This is Node.js library that checks whether a value is class
npm:
$ npm install isclass --save
yarn:
$ yarn add isclass
const isClass = require('isclass');
console.log(isClass("hello world")); // > false
console.log(isClass(function() {})); // > false
console.log(isClass(async function() {})); // > false
console.log(isClass(class {})); // > true
console.log(isClass(() => {})); // > false
console.log(isClass(async () => {})); // > false
console.log(isClass(123)); // > false
console.log(isClass({})); // > false
console.log(isClass([])); // > false