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.js
T

16 lines
381 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
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;
}
exports.mapToEntries = mapToEntries;