From 0b700b5f78c0ab170e696027947561e33018d221 Mon Sep 17 00:00:00 2001 From: Kushagra Date: Tue, 14 Jul 2020 12:59:53 +0530 Subject: [PATCH] fix(learn): clarify description for finders keepers (#39068) * fix(learn): clarify description for finders keepers Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> Co-authored-by: Oliver Eyton-Williams --- .../basic-algorithm-scripting/finders-keepers.english.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/finders-keepers.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/finders-keepers.english.md index 4facf79ac0..04e52bddad 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/finders-keepers.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/finders-keepers.english.md @@ -9,7 +9,9 @@ forumTopicId: 16016 ## Description
-Create a function that looks through an array (first argument) and returns the first element in the array that passes a truth test (second argument). If no element passes the test, return undefined. + + +Create a function that looks through an array `arr` and returns the first element in it that passes a 'truth test'. This means that given an element `x`, the 'truth test' is passed if `func(x)` is `true`. If no element passes the test, return `undefined`.
## Instructions