UNPKG

490 BTypeScriptView Raw
1/**
2@hidden
3*/
4export type CollectionLike<T> = {
5 has: (item: T) => boolean;
6};
7/**
8Retrieve the missing values in a collection based on an array of items.
9
10@hidden
11
12@param source - Source collection to search through.
13@param items - Items to search for.
14@param maxValues - Maximum number of values after the search process is stopped. Default: 5.
15*/
16declare const hasItems: <T>(source: CollectionLike<T>, items: readonly T[], maxValues?: number) => true | T[];
17export default hasItems;