张钢
2024-08-24 6af8fa57dcba45e27819c3694fcdb6d61d0411cd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';
require('../../modules/es.array.iterator');
require('../../modules/es.weak-set');
require('../../modules/esnext.weak-set.of');
var path = require('../../internals/path');
var apply = require('../../internals/function-apply');
var isCallable = require('../../internals/is-callable');
 
var WeakSet = path.WeakSet;
var weakSetOf = WeakSet.of;
 
module.exports = function of() {
  return apply(weakSetOf, isCallable(this) ? this : WeakSet, arguments);
};