How do I get a property of an object by string?
<p>I have an object, in an array. Doing this:</p>

<pre><code>alert(myObject.cats[1].nickname);
</code></pre>

<p>will output 'fluffykins' or whatever the nickname is.</p>

<p>Is there a way to access this property by string? ie.</p>

<pre><code>var param = 'nickname';
alert(myObject.cats[1].{param});
</code></pre>
