of.js 361 B

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