valid-value.js 182 B

12345678
  1. "use strict";
  2. var isValue = require("./is-value");
  3. module.exports = function (value) {
  4. if (!isValue(value)) throw new TypeError("Cannot use null or undefined");
  5. return value;
  6. };