houdini/app/javascript/common/lodash-joins/hash/hashRightAntiJoin.ts

18 lines
535 B
TypeScript
Raw Normal View History

2020-07-15 16:25:41 +00:00
// 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);
}