fast_array_intersect
fast_array_intersect copied to clipboard
You are not the fastest
I'm beating you by almost double ;)
function arrayAndCombiner(a, b) {
if (!a.length) {
return a;
}
if (!b.length) {
return b;
}
const bSet = new Set(b);
return a.filter((i) => bSet.has(i));
}
🎉 congrats
:p