mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Update doc examples to ES2015.
This commit is contained in:
4
minBy.js
4
minBy.js
@@ -13,9 +13,9 @@ import baseLt from './.internal/baseLt.js';
|
||||
* @returns {*} Returns the minimum value.
|
||||
* @example
|
||||
*
|
||||
* var objects = [{ 'n': 1 }, { 'n': 2 }];
|
||||
* const objects = [{ 'n': 1 }, { 'n': 2 }];
|
||||
*
|
||||
* minBy(objects, function(o) { return o.n; });
|
||||
* minBy(objects, o => o.n);
|
||||
* // => { 'n': 1 }
|
||||
*/
|
||||
function minBy(array, iteratee) {
|
||||
|
||||
Reference in New Issue
Block a user