tion">[</span><span class="token string">'rooster'</span><span class="token punctuation">,</span> <span class="token string">'pig'</span><span class="token punctuation">]</span><span class="token punctuation">;</span>

animals<span class="token punctuation">.</span><span class="token function">get</span><span class="token punctuation">(</span><span class="token string">'lastObject'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token comment">//=> "pig"</