Skip to content

Commit

Permalink
non sctrict operators compare sctrict
Browse files Browse the repository at this point in the history
The non-strict equality-comparer == and != are comparing strict.
  • Loading branch information
Auge19 authored Dec 4, 2024
1 parent d71d7f9 commit b2f4fc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/utils.parser/src/operators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const operators = {
// TODO: 'in': function (a, b) { return a in b; },
// TODO: 'instanceof': function (a, b) { return a instanceof b; },
// equality
'==': function equal (a, b) { return a === b },
'!=': function ne (a, b) { return a !== b },
'==': function equal (a, b) { return a == b },
'!=': function ne (a, b) { return a != b },
'===': function sequal (a, b) { return a === b },
'!==': function sne (a, b) { return a !== b },
// bitwise
Expand Down

0 comments on commit b2f4fc1

Please sign in to comment.