iserror Test whether value is error object. Installation $ npm install iserrorAPI const isError = require('iserror'); isError(new Error('Some error')); // => true isError({}); // => falseRunning tests $ npm testLicense MIT