Merge pull request #2194 from dorelljames/patch-4

Update task.md
This commit is contained in:
Ilya Kantor 2020-10-12 19:37:22 +03:00 committed by GitHub
commit ac289950ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ importance: 4
# Filter range # 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. The function should not modify the array. It should return the new array.