mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Fixing #185
This commit is contained in:
@@ -431,8 +431,8 @@ _.min(numbers);
|
|||||||
<p id="sortBy">
|
<p id="sortBy">
|
||||||
<b class="header">sortBy</b><code>_.sortBy(list, iterator, [context])</code>
|
<b class="header">sortBy</b><code>_.sortBy(list, iterator, [context])</code>
|
||||||
<br />
|
<br />
|
||||||
Returns a sorted <b>list</b>, ranked by the results of running each
|
Returns a sorted copy of <b>list</b>, ranked by the results of running
|
||||||
value through <b>iterator</b>.
|
each value through <b>iterator</b>.
|
||||||
</p>
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
_.sortBy([1, 2, 3, 4, 5, 6], function(num){ return Math.sin(num); });
|
_.sortBy([1, 2, 3, 4, 5, 6], function(num){ return Math.sin(num); });
|
||||||
|
|||||||
Reference in New Issue
Block a user