Skip to content

Commit 90aa323

Browse files
committed
fixes #502
1 parent 99fb90e commit 90aa323

File tree

1 file changed

+2
-3
lines changed
  • 1-js/05-data-types/05-array-methods/3-filter-range-in-place

1 file changed

+2
-3
lines changed

1-js/05-data-types/05-array-methods/3-filter-range-in-place/task.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ importance: 4
22

33
---
44

5-
# Filter "in place"
5+
# Filter range "in place"
66

7-
Write a function `filterRangeInPlace(arr, a, b)` that gets an array `arr` and removes from it all values except those that are between `a` and `b. The test is: `a ≤ arr[i] ≤ b`.
7+
Write a function `filterRangeInPlace(arr, a, b)` that gets an array `arr` and removes from it all values except those that are between `a` and `b. The test is: `a ≤ arr[i] ≤ b`.
88

99
The function should only modify the array. It should not return anything.
1010

@@ -16,4 +16,3 @@ filterRangeInPlace(arr, 1, 4); // removed the numbers except from 1 to 4
1616

1717
alert( arr ); // [3, 1]
1818
```
19-

0 commit comments

Comments
 (0)