Get unlimited public & private packages + team-based management with npm Teams.Learn more »

iserror

0.0.2 • Public • Published

iserror Build Status Coverage Status npm version

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

MIT

Install

npm i iserror

DownloadsWeekly Downloads

253,392

Version

0.0.2

License

MIT

Last publish

Collaborators

  • avatar