mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +00:00
making toArray example clearer.
This commit is contained in:
@@ -579,8 +579,8 @@ _.shuffle([1, 2, 3, 4, 5, 6]);
|
|||||||
real Array. Useful for transmuting the <b>arguments</b> object.
|
real Array. Useful for transmuting the <b>arguments</b> object.
|
||||||
</p>
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
(function(){ return _.toArray(arguments).slice(0); })(1, 2, 3);
|
(function(){ return _.toArray(arguments).slice(1); })(1, 2, 3, 4);
|
||||||
=> [1, 2, 3]
|
=> [2, 3, 4]
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p id="size">
|
<p id="size">
|
||||||
|
|||||||
Reference in New Issue
Block a user