1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00
Files
mywebsite/node_modules/es5-ext/error/is-error.js

10 lines
207 B
JavaScript

'use strict';
var toString = Object.prototype.toString
, id = toString.call(new Error());
module.exports = function (x) {
return (x && ((x instanceof Error) || (toString.call(x)) === id)) || false;
};