DataFed icon indicating copy to clipboard operation
DataFed copied to clipboard

[Feature] Match Enum Codes to String

Open megatnt1122 opened this issue 3 months ago • 0 comments

Within the support.js file are enum codes that could be associated with strings for better logging practices.

function getEnumKeyByValue(enumObj, value) { return Object.keys(enumObj).find(key => enumObj[key] === value); }

const name = getEnumKeyByValue(Color, 2); console.log(name); // "Green"

megatnt1122 avatar Oct 16 '25 15:10 megatnt1122