13 lines
312 B
JavaScript
Raw Normal View History

2026-05-31 13:21:13 +02:00
//#region src/compat/_internal/setToEntries.ts
function setToEntries(set) {
const arr = new Array(set.size);
const values = set.values();
for (let i = 0; i < arr.length; i++) {
const value = values.next().value;
arr[i] = [value, value];
}
return arr;
}
//#endregion
exports.setToEntries = setToEntries;