main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
311 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
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 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.