2018-01-09 15:36:42 +01:00

6 lines
66 B
JavaScript

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