UNPKG

data-provider-temporary

Version:

Library that helps with server-to-client synchronization of data

9 lines (6 loc) 185 B
"use strict"; var isError = require("./is-error"); module.exports = function (value) { if (!isError(value)) throw new TypeError(value + " is not an Error object"); return value; };