mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 10:52:47 +00:00
10 lines
207 B
JavaScript
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;
|
|
};
|