Skip to content

nof1000/isclass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Header of isClass

isclass  ‒  isarrow  ‒  isasync

What it's for?

This is Node.js library that checks whether a value is class

Install

npm:

$ npm install isclass --save

yarn:

$ yarn add isclass

Example

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

LICENSE

MIT

About

πŸ‘¨β€πŸ’» ES6: checks whether a value is class

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published