diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/match.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/match.js b/js/match.js index ae13124..dba12e1 100644 --- a/js/match.js +++ b/js/match.js @@ -33,8 +33,8 @@ const matchObject = (value, ...patterns) => { let isMatch = true; for (let key in pattern) { if (pattern[key] !== value[key]) { - isMatch = false; - break; + isMatch = false; + break; } } if (isMatch) return action(value); |