UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

10 lines (6 loc) 207 B
'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; };