2014-11-23 16:15:39 +11:00

6 lines
66 B
JavaScript

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