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

19 lines
343 B
Plaintext

/**
* Converts `set` to an array of its values.
*
* @private
* @param {Object} set The set to convert.
* @returns {Array} Returns the values.
*/
function setToArray(set) {
var index = -1,
result = Array(set.size);
set.forEach(function(value) {
result[++index] = value;
});
return result;
}
export default setToArray;