/** * This method is like `intersection` except that it accepts `comparator` * which is invoked to compare elements of `arrays`. The order and references * of result values are determined by the first array. The comparator is * invoked with two arguments: (arrVal, othVal). * * @param comapritor The comparator invoked per element * @param compareFunction * @param arrays The arrays to inspect. * @return Returns the new array of intersecting values. * @example * * const objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }] * const others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }] * * intersectionWith(isEqual, objects, others) * // => [{ 'x': 1, 'y': 2 }] */ export declare const intersectionWith: (compareFunction: (a: T, b: T) => boolean, ...arrays: T[][]) => T[];