SOURCE

var obj = {
    0: "one",
    1: "two",
    length: 2
};
obj = Array.from(obj);
for(var k of obj){
    console.log(k);
}
console 命令行工具 X clear

                    
>
console