of.js 383 B

12345678910111213
  1. 'use strict';
  2. require('../../modules/es.set');
  3. require('../../modules/es.string.iterator');
  4. require('../../modules/esnext.set.of');
  5. require('../../modules/web.dom-collections.iterator');
  6. var path = require('../../internals/path');
  7. var Set = path.Set;
  8. var setOf = Set.of;
  9. module.exports = function of() {
  10. return setOf.apply(typeof this === 'function' ? this : Set, arguments);
  11. };