of.js 327 B

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