mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 12:04:57 +01:00
7 lines
168 B
JavaScript
7 lines
168 B
JavaScript
|
export default function createEnum(...values) {
|
||
|
const obj = {};
|
||
|
for (const value of values) {
|
||
|
obj[value] = value;
|
||
|
}
|
||
|
return Object.freeze(obj);
|
||
|
}
|