From 7e4ddb7ac866e66ce29b65446a9c12eab435a3c3 Mon Sep 17 00:00:00 2001 From: Paul W Date: Wed, 29 Jul 2026 01:46:54 +0000 Subject: [PATCH] Update js-bench/for_vs_map.js --- js-bench/for_vs_map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-bench/for_vs_map.js b/js-bench/for_vs_map.js index ed41e0b..7635d8f 100644 --- a/js-bench/for_vs_map.js +++ b/js-bench/for_vs_map.js @@ -8,7 +8,7 @@ const for_timings = [] for (let i = 0; i < 10; i++) { const startTime = performance.now() for (let i = 0; i < for_test_list.length; i++) { - for_test_list[i] * 2 + for_test_list[i] = for_test_list[i] * 2 } const timeElapsed = performance.now() - startTime for_timings.push(timeElapsed)