valid-set.js 153 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 'use strict'; var isSet = require('./is-set'); module.exports = function (x) { if (!isSet(x)) throw new TypeError(x + " is not a Set"); return x; };