From a09cc71fb4b28982e7c737a1b8ae0241e4744a12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Antonio=20Fern=C3=A1ndez=20de=20Alba?= Date: Tue, 4 Jun 2024 09:45:34 +0200 Subject: [PATCH] Update array.js --- src/array.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/array.js b/src/array.js index d86b40d..b35815d 100644 --- a/src/array.js +++ b/src/array.js @@ -13,7 +13,7 @@ function findMin(arr) { // Function to calculate the average of numbers in an array function calculateAverage(arr) { // **INTELLIGENT TEST RUNNER**: Uncomment this line to test Intelligent Test Runner - // if (!Array.isArray(arr) || arr.length === 0) return null; + if (!Array.isArray(arr) || arr.length === 0) return null; const sum = arr.reduce((a, b) => a + b, 0); return sum / arr.length; }