|
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:
381 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|---|
| 4 |
|
|---|
| 5 | function mapToEntries(map) {
|
|---|
| 6 | const arr = new Array(map.size);
|
|---|
| 7 | const keys = map.keys();
|
|---|
| 8 | const values = map.values();
|
|---|
| 9 | for (let i = 0; i < arr.length; i++) {
|
|---|
| 10 | arr[i] = [keys.next().value, values.next().value];
|
|---|
| 11 | }
|
|---|
| 12 | return arr;
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | exports.mapToEntries = mapToEntries;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.