We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8a6789 commit 1fead6bCopy full SHA for 1fead6b
src/arrays.js
@@ -14,6 +14,9 @@ const each = (elements, cb) => {
14
// This only needs to work with arrays.
15
// You should also pass the index into `cb` as the second argument
16
// based off http://underscorejs.org/#each
17
+ for (let i = 0; i < elements.length; i++) {
18
+ cb(elements[i], i);
19
+ }
20
};
21
22
const map = (elements, cb) => {
0 commit comments