ran npm run tdd & generated TDD
This commit is contained in:
4
test/intersection/intersection.js
Normal file
4
test/intersection/intersection.js
Normal file
@ -0,0 +1,4 @@
|
||||
module.exports = (a, b) => {
|
||||
const s = new Set(b);
|
||||
return a.filter(x => s.has(x));
|
||||
};
|
||||
Reference in New Issue
Block a user