2014-10-25 09:09:55 +11:00

6 lines
66 B
JavaScript

nums.forEach(v => {
if (v % 5 === 0) {
fives.push(v);
}
});