'use strict';
/**
* Returns a list of elements that exist in both arrays,
* after applying the provided function to each array element of both.
*/functionintersectBy(a, b, fn) {
var s = newSet(b.map(fn));
return a.filter(x => s.has(fn(x)));
}
module.exports = intersectBy;