|
Last change
on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
268 bytes
|
| Line | |
|---|
| 1 | function setToEntries(set) {
|
|---|
| 2 | const arr = new Array(set.size);
|
|---|
| 3 | const values = set.values();
|
|---|
| 4 | for (let i = 0; i < arr.length; i++) {
|
|---|
| 5 | const value = values.next().value;
|
|---|
| 6 | arr[i] = [value, value];
|
|---|
| 7 | }
|
|---|
| 8 | return arr;
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | export { setToEntries };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.