primitive-set.js 232 B

123456789
  1. 'use strict';
  2. var forEach = Array.prototype.forEach, create = Object.create;
  3. module.exports = function (arg/*, …args*/) {
  4. var set = create(null);
  5. forEach.call(arguments, function (name) { set[name] = true; });
  6. return set;
  7. };