mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Add notes about Infinity and -Infinity to _.min and _.max docs.
This commit is contained in:
18
dist/lodash.underscore.js
vendored
18
dist/lodash.underscore.js
vendored
@@ -2171,10 +2171,11 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the maximum value of an array. If a callback is provided it
|
||||
* will be executed for each value in the array to generate the criterion by
|
||||
* which the value is ranked. The callback is bound to `thisArg` and invoked
|
||||
* with three arguments; (value, index, collection).
|
||||
* Retrieves the maximum value of a collection. If the collection is empty or
|
||||
* falsey `-Infinity` is returned. If a callback is provided it will be executed
|
||||
* for each value in the collection to generate the criterion by which the value
|
||||
* is ranked. The callback is bound to `thisArg` and invoked with three
|
||||
* arguments; (value, index, collection).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
* callback will return the property value of the given element.
|
||||
@@ -2238,10 +2239,11 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the minimum value of an array. If a callback is provided it
|
||||
* will be executed for each value in the array to generate the criterion by
|
||||
* which the value is ranked. The callback is bound to `thisArg` and invoked
|
||||
* with three arguments; (value, index, collection).
|
||||
* Retrieves the minimum value of a collection. If the collection is empty or
|
||||
* falsey `Infinity` is returned. If a callback is provided it will be executed
|
||||
* for each value in the collection to generate the criterion by which the value
|
||||
* is ranked. The callback is bound to `thisArg` and invoked with three
|
||||
* arguments; (value, index, collection).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
* callback will return the property value of the given element.
|
||||
|
||||
Reference in New Issue
Block a user