Description of "Filter Arrays with .filter" updated

Fixes issue #10695
The description of the challenge "Filter Arrays with .filter" was updated to remove double negatives from the description as pointed out in the issue #10695
This commit is contained in:
Shubham Patil
2016-09-14 04:18:18 -04:00
parent def0bae2cc
commit 2c2514e477

View File

@ -418,7 +418,7 @@
"id": "cf1111c1c15feddfaeb9bdef", "id": "cf1111c1c15feddfaeb9bdef",
"title": "Filter Arrays with .filter", "title": "Filter Arrays with .filter",
"description": [ "description": [
"The <code>filter</code> method is used to iterate through an array and filter out elements where a given condition is not true.", "The <code>filter</code> method creates a new array from an existing one by iterating over it and returning only the elements where a given condition returns true.",
"<code>filter</code> is passed a callback function which takes the current value (we've called that <code>val</code>) as an argument.", "<code>filter</code> is passed a callback function which takes the current value (we've called that <code>val</code>) as an argument.",
"Any array element for which the callback returns true will be kept and elements that return false will be filtered out.", "Any array element for which the callback returns true will be kept and elements that return false will be filtered out.",
"The following code is an example of using <code>filter</code> to remove array elements that are equal to five:", "The following code is an example of using <code>filter</code> to remove array elements that are equal to five:",