iserror
Test whether value is error object.
Installation
$ npm install iserror
API
const isError = require('iserror');
isError(new Error('Some error'));
// => true
isError({});
// => false
Running tests
$ npm test
License |
License |
---|---|
GroupId | GroupIdorg.webjars.npm |
ArtifactId | ArtifactIdiserror |
Last Version | Last Version0.0.2 |
Release Date | Release Date |
Type | Typejar |
Description |
Descriptioniserror
WebJar for iserror
|
Project URL |
Project URL |
Source Code Management |
Source Code Management |
Filename | Size |
---|---|
iserror-0.0.2.pom | |
iserror-0.0.2.jar | 7 KB |
iserror-0.0.2-sources.jar | 22 bytes |
iserror-0.0.2-javadoc.jar | 22 bytes |
Browse |
<!-- https://jarcasting.com/artifacts/org.webjars.npm/iserror/ -->
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>iserror</artifactId>
<version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/iserror/
implementation 'org.webjars.npm:iserror:0.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/iserror/
implementation ("org.webjars.npm:iserror:0.0.2")
'org.webjars.npm:iserror:jar:0.0.2'
<dependency org="org.webjars.npm" name="iserror" rev="0.0.2">
<artifact name="iserror" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='iserror', version='0.0.2')
)
libraryDependencies += "org.webjars.npm" % "iserror" % "0.0.2"
[org.webjars.npm/iserror "0.0.2"]
Test whether value is error object.
$ npm install iserror
const isError = require('iserror');
isError(new Error('Some error'));
// => true
isError({});
// => false
$ npm test