validate positive integers javascript code example Example: find positive integers javascript .filter(num => num > 0 && num % parseInt(num) === 0)