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