is-class
Check if function is an ES6 class.
Last updated 5 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                                ...           6 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           7 years ago
  • 0.0.4                                ...           9 years ago
  • 0.0.3                                ...           10 years ago
  • 0.0.2                                ...           10 years ago
  • 0.0.1                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (4)

Copyright 2013 - present © cnpmjs.org | Home |