Object {0: 0, 1: 2, 2: 4, 3: 6, 4: 8, 5: 11, 6: 13, 7: 15, 8: 17, 9: 19, 10: 22, 11 : 24, 12: 26, 13: 28, 14: 30, 15: 33, 16: 35, 17: 37, 18: 39, 19: 41, 20: 44, 21: 46, 22: 48, 23: 50, 24: 52, 25: 55, 26: 57}
Results
The value of the traversed option is
1
10
100
101
...
11
110
I didn’t set the sorting. .
Convert your object into an array, http://jsfiddle.net/gzozycj8/2/
Object has no order. Only arrays have order.