2014-10-11 22:33:08 +11:00

6 lines
68 B
JavaScript

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