source: node_modules/es-toolkit/dist/compat/_internal/mapToEntries.js

Last change on this file 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
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5function 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
15exports.mapToEntries = mapToEntries;
Note: See TracBrowser for help on using the repository browser.