]> git.r.bdr.sh - rbdr/dotfiles/blob
422705faf71d2f657dced54b04a2c26706a4ec16
[rbdr/dotfiles] /
1 'use strict';
2
3 var toString = Object.prototype.toString
4
5 , id = toString.call(new Error());
6
7 module.exports = function (x) {
8 return (x && ((x instanceof Error) || (toString.call(x)) === id)) || false;
9 };