Files
NapCatQQ/.pnpm-store/v3/files/ba/b1fb24918382d40e9f59d4e949c03c473592b84cc8af8e7705a960fe0110c4ac6717bd39a1480041496496066c640d780da024b63f4434c84f41d3d8891c97
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

19 lines
363 B
Plaintext

/**
* Converts `map` to its key-value pairs.
*
* @private
* @param {Object} map The map to convert.
* @returns {Array} Returns the key-value pairs.
*/
function mapToArray(map) {
var index = -1,
result = Array(map.size);
map.forEach(function(value, key) {
result[++index] = [key, value];
});
return result;
}
module.exports = mapToArray;