UNPKG

tamda

Version:

Practical functional programming library for TypeScript

37 lines (36 loc) 1.31 kB
/** * Determines whether or not string `b` is a substring of `a`. * @param a String to look for `b`. * @param b Substring to look for in `a`. */ export declare function contains(a: string, b: string): boolean; /** * Returns a function that * determines whether or not string `b` is a substring of `a`. * @param b Substring to look for in `a`. */ export declare function contains(b: string): typeof deferredString; /** * Determines whether or not an `array` contains an `item`. * @param array Array to look for item in. * @param item Item to look for in the array. */ export declare function contains<T>(array: T[], item: T): boolean; /** * Returns a function that * determines whether or not an `array` contains an `item`. * @param array Array to look for item in. * @param item Item to look for in the array. */ export declare function contains<T>(item: T): typeof deferredArray; /** * Determines whether or not previously specified string `b` is a substring of `a`. * @param a String to look for `b`. */ declare function deferredString(a: string): boolean; /** * Determines whether or not an `array` contains a previously specified `item`. * @param array Array to look for item in. */ declare function deferredArray<T>(array: T[]): boolean; export {};