From 40e096b6d5291a025e365a0f4c010d9a0efb9a69 Mon Sep 17 00:00:00 2001 From: Liang Zhao Date: Fri, 17 Nov 2017 23:04:34 +0800 Subject: [PATCH] Fix operator in `createMathOperation`. (#3499) --- .internal/createMathOperation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.internal/createMathOperation.js b/.internal/createMathOperation.js index 189ac90fe..b893b5cda 100644 --- a/.internal/createMathOperation.js +++ b/.internal/createMathOperation.js @@ -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) {