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