skip to:contentpackage searchsign in
❤
  • Pro
  • Teams
  • Pricing
  • Documentation
npm
Sign UpSign In

is-class
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published 6 years ago
  • Readme
  • Code Beta
  • 0 Dependencies
  • 114 Dependents
  • 9 Versions

is-class

Check if function is an ES6 class.

License NPM version PRs Welcome

Install

npm install is-class

Usage

const isClass = require('is-class')
 
class F {}
function G() {}
 
console.log(isClass(F)) // true
console.log(isClass(G)) // false

Test

npm test

License

MIT

Dependents (114)

  • @nestjs-query/query-typegoose
  • brick-component
  • mdebug
  • @notyp/core
  • @jacksontian/rtf-parser
  • pixiu-swap-core
  • toy-react
  • yyz
  • maishu-nwsp
  • makeitso-cli
  • air5-carbon
  • @skypress/nestjs-dynamodb
  • @rafterjs/di-autoloader
  • @sojs/swagger
  • @sojs/core
  • @sojs/dashboard
  • @fastify-plus/openapi
  • @fastify-plus/swagger
  • @cloudraker/nestjs-typegoose
  • @tiejs/graphql
  • @isman/fireorm
  • noader
  • jaid-core
  • @robinwongm/nestjs-typegoose
  • @dustin-bbc/botium-core
  • maishu-node-mvc
  • botium-core
  • wendigo
  • canvas-sketch
  • shimo-opentracing-auto
  • alfajor
  • miox
  • rtf-parse
  • @yesboss/merapi
  • miox-simple
  • miox-vue
  • class-info
  • fugazi
  • js-redux
  • starfish-api
  • assert-args
  • debuk
  • miox-vuc
  • miox-vue2x
  • kalima
  • miox-core
  • merapi
  • idyll-interactive-document
  • miox-vue2x-container
  • vukoa-util
  • and more...

Package Sidebar

Install

npm i is-class

Repository

Gitgithub.com/miguelmota/is-class

Homepage

github.com/miguelmota/is-class

DownloadsWeekly Downloads

32,058

Version

0.0.9

License

MIT

Unpacked Size

6.73 kB

Total Files

12

Last publish

6 years ago

Collaborators

  • miguelmota
Try on RunKit
Report malware

Footer

Support

  • Help
  • Advisories
  • Status
  • Contact npm

Company

  • About
  • Blog
  • Press

Terms & Policies

  • Policies
  • Terms of Use
  • Code of Conduct
  • Privacy