blob: 422705faf71d2f657dced54b04a2c26706a4ec16 [file] [log] [blame]
'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;
};