without atempting to solve the challenge and just answer your question you can do the following:
let positiveInts = realNumberArray.filter(x => x > 0) //(es6)
```
edit i just looked at the challenge cause i cant sleep and u dont want decimals so you can do
```
let positiveInts = realNumberArray.filter(x => x > 0 && Number.isInteger(x))
```
i think you could but not with filter as its not giving a rule to filter with its changing numbers it could work with map but with mean using additional higher order functions
let positiveInts = realNumberArray.filter(x => x > 0).map(x => x = Math.floor(x))
is how you would be using Math.floor the problem is it wants you to filter out the non intergers (decimals) not change them to be intergers so you end up with additonal numbers you dont want to complete the challenge.
ah i went and replaced my code of Number.isInt with that and it didnt work i had only just woken up so maybe i got did somin wrong and didnt notice my bad