Skip to content

Commit e601372

Browse files
committed
use for loop instead of for-in loop in case String.prototype has been modified. Closes #6
1 parent 1b6551e commit e601372

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ function filterPatterns(arr, comparison, prefix, intersection, options) {
224224

225225
function zip(a, b) {
226226
let arr = [];
227-
for (let ch in a) arr.push([a[ch], b[ch]]);
227+
for (let i = 0; i < a.length; i++) {
228+
arr.push([a[i], b[i]]);
229+
}
228230
return arr;
229231
}
230232

0 commit comments

Comments
 (0)