is-class
Check if function is an ES6
class.
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 |
License |
|---|---|
| GroupId | GroupIdorg.webjars.npm |
| ArtifactId | ArtifactIdis-class-hotfix |
| Last Version | Last Version0.0.6 |
| Release Date | Release Date |
| Type | Typejar |
| Description |
Descriptionis-class-hotfix
WebJar for is-class-hotfix
|
| Project URL |
Project URL |
| Source Code Management |
Source Code Management |
| Filename | Size |
|---|---|
| is-class-hotfix-0.0.6.pom | |
| is-class-hotfix-0.0.6.jar | 7 KB |
| is-class-hotfix-0.0.6-sources.jar | 22 bytes |
| is-class-hotfix-0.0.6-javadoc.jar | 22 bytes |
| Browse |
<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-class-hotfix/ -->
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>is-class-hotfix</artifactId>
<version>0.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-class-hotfix/
implementation 'org.webjars.npm:is-class-hotfix:0.0.6'
// https://jarcasting.com/artifacts/org.webjars.npm/is-class-hotfix/
implementation ("org.webjars.npm:is-class-hotfix:0.0.6")
'org.webjars.npm:is-class-hotfix:jar:0.0.6'
<dependency org="org.webjars.npm" name="is-class-hotfix" rev="0.0.6">
<artifact name="is-class-hotfix" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-class-hotfix', version='0.0.6')
)
libraryDependencies += "org.webjars.npm" % "is-class-hotfix" % "0.0.6"
[org.webjars.npm/is-class-hotfix "0.0.6"]
Check if function is an ES6
class.
npm install is-class
const isClass = require('is-class')
class F {}
function G() {}
console.log(isClass(F)) // true
console.log(isClass(G)) // false
npm test