mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Avoid isIterateeCall check if floating is a boolean.
This commit is contained in:
@@ -11648,7 +11648,7 @@
|
|||||||
* // => a floating-point number between 1.2 and 5.2
|
* // => a floating-point number between 1.2 and 5.2
|
||||||
*/
|
*/
|
||||||
function random(min, max, floating) {
|
function random(min, max, floating) {
|
||||||
if (floating && isIterateeCall(min, max, floating)) {
|
if (floating && typeof floating != 'boolean' && isIterateeCall(min, max, floating)) {
|
||||||
max = floating = undefined;
|
max = floating = undefined;
|
||||||
}
|
}
|
||||||
var noMin = min === undefined,
|
var noMin = min === undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user