Guest User

Untitled

a guest
Nov 24th, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. function filterRange(arr, a, b) {
  2. let newArr = [];
  3. arr.forEach(function(item) {
  4. if (item >= a && item <= b) {
  5. newArr.push(item);
  6. }
  7. });
  8. return newArr;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment