Skip to content

joegesualdo/is-an-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

isError

Checks for an Error object

Usage

var isError = require("is-an-error")

var err = new Error("this is an error");
console.log(isError(err))

API

isError(value)

Name Type Description
value Object Object that represents the value you want to test if it's an error
var isError = require("is-an-error")

var err = new Error("this is an error");
console.log(isError(err))

License

MIT © Joe Gesualdo·

About

Checks whether a value is an Error

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published