diff options
author | elioat <elioat@tilde.institute> | 2024-07-04 19:27:11 -0400 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2024-07-04 19:27:11 -0400 |
commit | 7d1a6ecfb03e4115a477072abdf79499713d268c (patch) | |
tree | de372b192608bbc61275d5c8889b533d7714cb7a | |
parent | 6eab3009d6ffeb8bbfd06776f0ced47aa329019b (diff) | |
download | tour-7d1a6ecfb03e4115a477072abdf79499713d268c.tar.gz |
*
-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); |