本文整理汇总了TypeScript中lodash.intersection函数的典型用法代码示例。如果您正苦于以下问题:TypeScript intersection函数的具体用法?TypeScript intersection怎么用?TypeScript intersection使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了intersection函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
(category) => _.intersection(this.categories[category].states, pgStates).length
示例2: intersectsLSV
export function intersectsLSV(
x: JsonldListSetValue,
y: JsonldListSetValue
): boolean {
return !isEmpty(intersection(getValuesLSV(x), getValuesLSV(y)));
}
示例3: weekRangeConflict
export function weekRangeConflict(wr1: WeekRange, wr2: WeekRange) {
return _.intersection(weekRangeToArray(wr1), weekRangeToArray(wr2)).length > 0;
}
示例4: getKeyForAggregationField
static getKeyForAggregationField(dataObj): string {
const keys = _.keys(dataObj);
return _.intersection(keys, ['sum', 'avg', 'min', 'max', 'count', 'unique'])[0];
}
示例5:
seq => !includedContext.length || _.intersection(seq.contexts || [], includedContext).length
示例6:
activeEffects = [...activeEffects.filter(activeEffect =>
_.intersection(activeEffect.monoGroups, effect.monoGroups).length === 0
示例7: return
return (option: O) => typeof option.groups !== 'undefined' && lodash.intersection(option.groups, g).length > 0;