0.1.2 • Published 1 year ago

is-es-class v0.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

is-es-class

Coverage Status build status

Social Media Photo by Markus Winkler on Unsplash

The only reasonable way to understand if a class has been defined, or transpiled, as such.

Explained in this StackOverflow answer.

// const isESClass = require('is-es-class');
import isESClass from 'is-es-class';

isESClass(class {});        // ✅
isESClass(function () {});  // ❌
isESClass(() => {});        // ❌
isESClass({m(){}}.m);       // ❌
0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.0

1 year ago