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

Package detail

is-class-hotfix

miguelmota878.6kMIT0.0.6

Check if function is an ES6 class.

predicate, function, class, es6

readme

is-class

Check if function is an ES6 class.

Install

npm install is-class
bower install is-class

Usage

var 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