[BUG] Object property access

Hi !

I will try to explain the issue as clear as possible.

Usually in javascript, for the following object…

var object = {
    'a' : ['foo', 'foo1', 'foo2'],
    'b' : ['foo', 'foo1', 'foo2'],
    'c' : ['foo', 'foo1', 'foo2'],
    'd' : ['foo', 'foo1', 'foo2']
}

…we can access the object properties using the two following syntaxes :

// Syntax 1
var A = object.a;

// Syntax 2
var a = 'a';
var A = object[a];

It just doesn’t work with CodeCombat JS, especially when using a for in loop:

for (var array in object) {

    // array is a string instead the object
    // property, an array in the present case

    // trying the following returns weird buggy object
    var foo = object[array];
}

Can you give more details as to the buggy behavior you see? That kind of for-in loop over an object should work.