UNPKG

319 BTypeScriptView Raw
1/**
2 * Generic interface for collection types to check if a given value is
3 * part of the collection.
4 */
5export interface IContains<T> {
6 /**
7 * Returns `true` if `x` is part of collection.
8 *
9 * @param x - value to check for
10 */
11 contains(x: T): boolean;
12}
13//# sourceMappingURL=contains.d.ts.map
\No newline at end of file