valid-value.js 182 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 "use strict"; var isValue = require("./is-value"); module.exports = function (value) { if (!isValue(value)) throw new TypeError("Cannot use null or undefined"); return value; };