13 lines
300 B
JavaScript
Raw Permalink 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
export { setToEntries };