mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07: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) {
|
if (value === undefined && other === undefined) {
|
||||||
return defaultValue
|
return defaultValue
|
||||||
}
|
}
|
||||||
if (value != undefined && other === undefined) {
|
if (value !== undefined && other === undefined) {
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
if (other !== undefined && value === undefined) {
|
if (other !== undefined && value === undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user