houdini/app/javascript/common/lodash-joins/hash/hashRightAntiJoin.ts
2020-07-15 12:30:18 -05:00

17 lines
535 B
TypeScript

// License: LGPL-3.0-or-later
// from https://github.com/mtraynham/lodash-joins/blob/c252b462981562451d85d1e09c8f273ce7fe06c5/lib/hash/hashRightAntiJoin.ts
import hashLeftAntiJoin from './hashLeftAntiJoin';
import {Accessor} from '../typings';
/**
* Hash right anti join
*/
export default function hashRightAntiJoin<LeftRow, RightRow, Key>(
a: LeftRow[],
aAccessor: Accessor<LeftRow, Key>,
b: RightRow[],
bAccessor: Accessor<RightRow, Key>
): RightRow[] {
return hashLeftAntiJoin(b, bAccessor, a, aAccessor);
}