is-class
Check if function is an ES6 class.
Last updated 10 years ago by miguelmota .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install is-class 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.9                                ...           latest (5 years ago)

9 Versions

  • 0.0.9                                ...           5 years ago
  • 0.0.8                                ...           5 years ago
  • 0.0.7                                ...           5 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           9 years ago
  • 0.0.3                                ...           9 years ago
  • 0.0.2                                ...           9 years ago
  • 0.0.1                                ...           10 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |