//#region src/is-in/index.d.ts /** * Creates a predicate function that determines if a value exists in a given array. * * @template T - The type of the array elements and value * @param array - The array to search within * @param value - The value to check for * * @remarks * - Pure function with no side effects * - Uses Array.prototype.includes() for membership testing * - Uses strict equality (===) for element comparison * - Works with any type that can be compared with strict equality * - Useful for array filtering and validation predicates * * @example * ```typescript * const isValidStatus = isIn(['pending', 'approved', 'rejected']); * isValidStatus('pending'); // true * isValidStatus('unknown'); // false * * const isPrime = isIn([2, 3, 5, 7, 11, 13]); * isPrime(7); // true * isPrime(10); // false * * // Useful with arrays * const userIds = [101, 102, 103, 104]; * const activeUsers = [101, 103, 105, 106]; * const validActiveUsers = activeUsers.filter(isIn(userIds)); // [101, 103] * ``` */ declare const isIn: (array: T[]) => (value: T) => boolean; //#endregion export { isIn }; //# sourceMappingURL=index.d.ts.map