var enumNames=[];
for (var log in LogEntry) {
if (isNaN(Number(log))) {
enumNames.push(log);
}
}
console.log(enumNames);
//Output
//["ERROR", "WARN", "INFO", "DEBUG"]
var enumValues=[];
for (var log in LogEntry) {
if (!isNaN(Number(log))) {
enumValues.push(log);
}
}
console.log(enumValues);
//Output
//["0", "1", "2", "3"]