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