Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

esnext.weak-set.from.js 415B

12345678910
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var WeakSetHelpers = require('../internals/weak-set-helpers');
  4. var createCollectionFrom = require('../internals/collection-from');
  5. // `WeakSet.from` method
  6. // https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from
  7. $({ target: 'WeakSet', stat: true, forced: true }, {
  8. from: createCollectionFrom(WeakSetHelpers.WeakSet, WeakSetHelpers.add, false)
  9. });