Use value from array as property
<p>So I have a dictionary-like object and an array:</p>

<pre><code>var colors = {"b":color(0, 0, 0)};
var ar=[["b","0","0"],["b","b","0"],["b","b","b"]];
</code></pre>

<p>Now, I would like to get the value from the dictionary using the array like so:</p>

<pre><code>colors.ar[0][0]
</code></pre>

<p>Which should give me the color black. However, this gives me an error:</p>

<pre><code>Cannot read property '0' of undefined
</code></pre>

<p>I believe this is because it's trying to access colors."b" instead of colors.b .</p>

<p>So how can I get the property from the dictionary by using a value from the array?</p>

<p>Thanks!</p>
