mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Fix operator in createMathOperation. (#3499)
This commit is contained in:
committed by
John-David Dalton
parent
8464b184b7
commit
40e096b6d5
@@ -14,7 +14,7 @@ function createMathOperation(operator, defaultValue) {
|
||||
if (value === undefined && other === undefined) {
|
||||
return defaultValue
|
||||
}
|
||||
if (value != undefined && other === undefined) {
|
||||
if (value !== undefined && other === undefined) {
|
||||
return value
|
||||
}
|
||||
if (other !== undefined && value === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user