validate-symbol.js 181 B

12345678
  1. "use strict";
  2. var isSymbol = require("./is-symbol");
  3. module.exports = function (value) {
  4. if (!isSymbol(value)) throw new TypeError(value + " is not a symbol");
  5. return value;
  6. };