Update task.md

Updated based on suggestion on issue #1769
This commit is contained in:
Dorell James 2020-10-13 00:36:26 +08:00 committed by GitHub
parent 1431a2552e
commit 040efef646
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ importance: 4
# Filter range
Write a function `filterRange(arr, a, b)` that gets an array `arr`, looks for elements between `a` and `b` in it and returns an array of them.
Write a function `filterRange(arr, a, b)` that gets an array `arr`, looks for elements with values higher or equal to `a` and lower or equal to `b` and return a result as an array.
The function should not modify the array. It should return the new array.