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