of.js 430 B

1234567891011121314
  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 apply = require('../../internals/function-apply');
  7. var isCallable = require('../../internals/is-callable');
  8. var Map = path.Map;
  9. var mapOf = Map.of;
  10. module.exports = function of() {
  11. return apply(mapOf, isCallable(this) ? this : Map, arguments);
  12. };