From 6a61c0d0624eeb355ac198d5be7be957559d6530 Mon Sep 17 00:00:00 2001 From: santiagotf <168837358+sandredev@users.noreply.github.com> Date: Thu, 2 Apr 2026 19:45:13 -0500 Subject: [PATCH] Update example to check for numbers in names array Fix incorrect example of Array.some() in line 483 --- .../09_day_higher_order_functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/09_Day_Higher_order_functions/09_day_higher_order_functions.md b/09_Day_Higher_order_functions/09_day_higher_order_functions.md index 9aa68718d..4fd5398e3 100644 --- a/09_Day_Higher_order_functions/09_day_higher_order_functions.md +++ b/09_Day_Higher_order_functions/09_day_higher_order_functions.md @@ -480,8 +480,8 @@ console.log(areSomeTrue) //true ``` ```js -const areAllStr = names.some((name) => typeof name === 'number') // Are all strings ? -console.log(areAllStr) // false +const isThereANumber = names.some((name) => typeof name === 'number') // Is there a number ? +console.log(isThereANumber) // false ``` ### sort