mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
perfomance fixes, eslint fixes (#4482)
This commit is contained in:
committed by
John-David Dalton
parent
29eb5713f5
commit
898b378f06
@@ -35,11 +35,11 @@ const freeParseFloat = parseFloat
|
||||
*/
|
||||
function random(lower, upper, floating) {
|
||||
if (floating === undefined) {
|
||||
if (typeof upper == 'boolean') {
|
||||
if (typeof upper === 'boolean') {
|
||||
floating = upper
|
||||
upper = undefined
|
||||
}
|
||||
else if (typeof lower == 'boolean') {
|
||||
else if (typeof lower === 'boolean') {
|
||||
floating = lower
|
||||
lower = undefined
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user