Checks for an Error object
var isError = require("is-an-error")
var err = new Error("this is an error");
console.log(isError(err))
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))
MIT © Joe Gesualdo·