of.js 430 B

1234567891011121314
  1. 'use strict';
  2. require('../../modules/es.array.iterator');
  3. require('../../modules/es.set');
  4. require('../../modules/esnext.set.of');
  5. var path = require('../../internals/path');
  6. var apply = require('../../internals/function-apply');
  7. var isCallable = require('../../internals/is-callable');
  8. var Set = path.Set;
  9. var setOf = Set.of;
  10. module.exports = function of() {
  11. return apply(setOf, isCallable(this) ? this : Set, arguments);
  12. };