From 76dbe00a7f626ef2ac7537afe86b12a36f540889 Mon Sep 17 00:00:00 2001 From: Benjamin Claassen Date: Fri, 17 Jan 2025 00:10:56 +0100 Subject: [PATCH] Correct null assigner instead of or assignment --- reviews/BordedDev/sudoku.modified.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reviews/BordedDev/sudoku.modified.js b/reviews/BordedDev/sudoku.modified.js index 5d3407b..55faac2 100644 --- a/reviews/BordedDev/sudoku.modified.js +++ b/reviews/BordedDev/sudoku.modified.js @@ -13,7 +13,7 @@ class EventHandler { } on(event, listener) { - this.events[event] ||= { name: name, listeners: [], callCount: 0 } + this.events[event] ??= { name: name, listeners: [], callCount: 0 } this.events[event].listeners.push(listener) }