primitive-set.js 275 B

12345678910
  1. "use strict";
  2. var forEach = Array.prototype.forEach, create = Object.create;
  3. // eslint-disable-next-line no-unused-vars
  4. module.exports = function (arg/*, …args*/) {
  5. var set = create(null);
  6. forEach.call(arguments, function (name) { set[name] = true; });
  7. return set;
  8. };