Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-class

miguelmota128.4kMIT0.0.9TypeScript support: included

Check if function is an ES6 class.

predicate, function, class, es6

readme

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

changelog

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

[0.0.2] - 2015-04-26

Added

  • Babel.js classes support