6 lines
76 B
JavaScript
6 lines
76 B
JavaScript
nums.forEach(function (v) {
|
|
if (v % 5 === 0) {
|
|
fives.push(v);
|
|
}
|
|
});
|