valid-set.js 153 B

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