DataFed
DataFed copied to clipboard
[Feature] Match Enum Codes to String
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"