collectype / factory/sets/setIntersection / setIntersectionFactory
setIntersectionFactory<
T,C>(ctx,oper): <K>(field,target) =>C
Defined in: factory/sets/setIntersection.ts:19
Creates a predicate filter for set intersection using PredicType.set.intersection.
T
The item type in the collection.
C extends Wherable<T, C>
The Wherable context type (must extend Wherable<T, C>).
C
The context (usually a collection) supporting the where method.
SetIntersectionOper
The set intersection operation to perform (see PredicType.set.comparison).
Returns a function that takes a field (of type Set on T) and a target set, and applies the set intersection predicate to filter the context.
<
K>(field,target):C
K extends string | number | symbol
K
Set<unknown>
C
PredicType.set.intersection for set intersection on set fields.