Add a method to Array object in Javascript?
<p>Is it possible to add a method to an array() in javascript?  (I know about prototypes, but I don't want to add a method to every array, just one in particular).</p>

<p>The reason I want to do this is because I have the following code<br></p>

<pre><code>function drawChart()
{
    //...
    return [list of important vars]
}

function updateChart(importantVars)
{
    //...
}

var importantVars = drawChart();

updateChart(importantVars);
</code></pre>

<p>And I want to be able to do something like this instead:</p>

<pre><code>var chart = drawChart();&lt;br&gt;
chart.redraw();
</code></pre>

<p>I was hoping there was a way I could just attach a method to what i'm returning in <code>drawChart()</code>.  Any way to do that?</p>
