mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17: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.
|
||||
</p>
|
||||
<pre>
|
||||
(function(){ return _.toArray(arguments).slice(0); })(1, 2, 3);
|
||||
=> [1, 2, 3]
|
||||
(function(){ return _.toArray(arguments).slice(1); })(1, 2, 3, 4);
|
||||
=> [2, 3, 4]
|
||||
</pre>
|
||||
|
||||
<p id="size">
|
||||
|
||||
Reference in New Issue
Block a user