I have an number array which contains floats, I've tried to use slice but with no luck as it does not work on float numbers (or I am doing something wrong here)
var array = [1.5, 1.7, 2.05, 2.2, 2.3, 2.4, 2.8, 3.3, 3.4, 3.59, 3.68, 3.9, 4, 4.1, 32, 33.6, 35, 39, 41.7, 42.88, 49, 53.09, 56, 59, 59, 69, 99, 129, 169, 169, 189, 229, 256.2]
Slice returns only a empty array
> array.slice(60, 250)
> []
Basically i want to get all numbers in range between 60, 250.
filter.arr.filter(num => num >= 60 && num <= 250).