of.js 383 B

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