push multiple elements to array
<p>I'm trying to push multiple elements as one array, but getting error</p>

<pre><code>&gt; a = []
[]
&gt; a.push.apply(null, [1,2])
TypeError: Array.prototype.push called on null or undefined
</code></pre>

<p>I'm trying to do similar stuff that I'd do in ruby, I was thinking that <code>apply</code> is something like <code>*</code>.</p>

<pre><code>&gt;&gt; a = []
=&gt; []
&gt;&gt; a.push(*[1,2])
=&gt; [1, 2]
</code></pre>
