of.js 417 B

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