UNPKG

311 BJavaScriptView Raw
1'use strict';
2var SetHelpers = require('../internals/set-helpers');
3var iterate = require('../internals/set-iterate');
4
5var Set = SetHelpers.Set;
6var add = SetHelpers.add;
7
8module.exports = function (set) {
9 var result = new Set();
10 iterate(set, function (it) {
11 add(result, it);
12 });
13 return result;
14};