From d2ff49a62681a42a2f9c878612908a9e238a7433 Mon Sep 17 00:00:00 2001 From: APNeto Date: Wed, 27 Jul 2022 09:27:11 -0300 Subject: [PATCH] Update find.js: the code was using the filter method instead Simply changed the method called upon the array from "filter" to "find". --- day6-array-methods/find.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/day6-array-methods/find.js b/day6-array-methods/find.js index eaf3fe7..e50f215 100644 --- a/day6-array-methods/find.js +++ b/day6-array-methods/find.js @@ -8,7 +8,7 @@ function odd(value){ } } -var out = arr.filter(odd); -var out1 = arr1.filter(odd); +var out = arr.find(odd); +var out1 = arr1.find(odd); console.log("Output of array 1 : " + out); -console.log("Output of array 2 :" + out1); \ No newline at end of file +console.log("Output of array 2 :" + out1);