This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/compat/_internal/mapToEntries.mjs
T

12 lines
280 B
JavaScript

function mapToEntries(map) {
const arr = new Array(map.size);
const keys = map.keys();
const values = map.values();
for (let i = 0; i < arr.length; i++) {
arr[i] = [keys.next().value, values.next().value];
}
return arr;
}
export { mapToEntries };