UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

4 lines (3 loc) 253 B
export declare function includes(what: string, coll: string): boolean; export declare function includes<A>(what: A, coll: A[]): boolean; export declare function includes<A, B = A extends string ? string | string[] : A[]>(what: A): (coll: B) => boolean;