From 7d1a6ecfb03e4115a477072abdf79499713d268c Mon Sep 17 00:00:00 2001 From: elioat Date: Thu, 4 Jul 2024 19:27:11 -0400 Subject: * --- js/match.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/match.js') 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); -- cgit 1.4.1-2-gfad0