Files
2025-11-28 19:45:44 -07:00

13 lines
297 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
function intersection(firstArr, secondArr) {
const secondSet = new Set(secondArr);
return firstArr.filter(item => {
return secondSet.has(item);
});
}
exports.intersection = intersection;