add iterators

This commit is contained in:
Sebastian McKenzie
2014-09-29 14:51:33 +10:00
parent fd932e20e9
commit b0cfbb20ca
17 changed files with 120 additions and 35 deletions

View File

@@ -0,0 +1,5 @@
nums.forEach(v => {
if (v % 5 === 0) {
fives.push(v);
}
});

View File

@@ -0,0 +1,5 @@
nums.forEach(function (v) {
if (v % 5 === 0) {
fives.push(v);
}
});