ran npm run tester -> logged invertKeyValues test are invalid
This commit is contained in:
5
test/intersectionBy/intersectionBy.js
Normal file
5
test/intersectionBy/intersectionBy.js
Normal file
@ -0,0 +1,5 @@
|
||||
const intersectionBy = (a, b, fn) => {
|
||||
const s = new Set(b.map(x => fn(x)));
|
||||
return a.filter(x => s.has(fn(x)));
|
||||
};
|
||||
module.exports = intersectionBy
|
||||
Reference in New Issue
Block a user