Skip to content

Commit ce7a946

Browse files
committed
Fixed and finished intersection for Underbar. Need to figure out what (val in array) did not work.
1 parent 0b0da66 commit ce7a946

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/underbar.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,7 @@ var _ = {};
678678
_.each(arrays, function(arr) {
679679
resultsTemp=[];
680680
_.each(arr, function(val) {
681-
if (val in results) {
682-
resultsTemp.push(val);
683-
}
681+
results.indexOf(val) >-1 ? resultsTemp.push(val) : null;
684682
});
685683
results=resultsTemp.slice();
686684
});

0 commit comments

Comments
 (0)