source: node_modules/es-toolkit/dist/compat/_internal/setToEntries.mjs@ 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: 268 bytes
Line 
1function 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
11export { setToEntries };
Note: See TracBrowser for help on using the repository browser.