making toArray example clearer.

This commit is contained in:
Jeremy Ashkenas
2012-02-03 10:18:44 -05:00
parent 5533c12033
commit af4b86e0a6

View File

@@ -579,8 +579,8 @@ _.shuffle([1, 2, 3, 4, 5, 6]);
real Array. Useful for transmuting the <b>arguments</b> object.
</p>
<pre>
(function(){ return _.toArray(arguments).slice(0); })(1, 2, 3);
=&gt; [1, 2, 3]
(function(){ return _.toArray(arguments).slice(1); })(1, 2, 3, 4);
=&gt; [2, 3, 4]
</pre>
<p id="size">