JavaScript. Filtering an array with the Splice() method
I need to write a function filterRangeInPlace(arr, a, b) that takes an array and two numbers and deletes all elements from the array that are not within the range a to b. So the check looks like a ≤ arr[i] ≤ b I want to do it with the for loop and splice method. But… Read More JavaScript. Filtering an array with the Splice() method