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