primitive-set.js 279 B

123456789101112
  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) {
  7. set[name] = true;
  8. });
  9. return set;
  10. };