discord.js-selfbot-v13/src/util/Enums.js
2022-03-19 17:37:45 +07:00

14 lines
238 B
JavaScript

'use strict';
function createEnum(keys) {
const obj = {};
for (const [index, key] of keys.entries()) {
if (key === null) continue;
obj[key] = index;
obj[index] = key;
}
return obj;
}
module.exports = { createEnum };