Skip to content

Commit a2a4650

Browse files
committed
Triple-equals!
1 parent 3369b0a commit a2a4650

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/easycoder-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/easycoder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3096,10 +3096,10 @@ const EasyCoder_Core = {
30963096
comparison = program.compare(program, condition.value1, condition.value2);
30973097
return condition.negate ? comparison >= 0 : comparison < 0;
30983098
case `array`:
3099-
const isArray = program.getValue(condition.value1)[0] = `[`;
3099+
const isArray = program.getValue(condition.value1)[0] === `[`;
31003100
return condition.negate ? !isArray : isArray;
31013101
case `object`:
3102-
const isObject = program.getValue(condition.value1)[0] = `{`;
3102+
const isObject = program.getValue(condition.value1)[0] === `{`;
31033103
return condition.negate ? !isObject : isObject;
31043104
case `not`:
31053105
return !program.getValue(condition.value);

js/easycoder/Core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3096,10 +3096,10 @@ const EasyCoder_Core = {
30963096
comparison = program.compare(program, condition.value1, condition.value2);
30973097
return condition.negate ? comparison >= 0 : comparison < 0;
30983098
case `array`:
3099-
const isArray = program.getValue(condition.value1)[0] = `[`;
3099+
const isArray = program.getValue(condition.value1)[0] === `[`;
31003100
return condition.negate ? !isArray : isArray;
31013101
case `object`:
3102-
const isObject = program.getValue(condition.value1)[0] = `{`;
3102+
const isObject = program.getValue(condition.value1)[0] === `{`;
31033103
return condition.negate ? !isObject : isObject;
31043104
case `not`:
31053105
return !program.getValue(condition.value);

0 commit comments

Comments
 (0)