source: node_modules/es-toolkit/dist/compat/_internal/setToEntries.js@ ba17441

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