UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

20 lines 474 B
//#region src/string/hasAll.d.ts /** * `hasAll(target, source)` * * Checks if `target` string contains all strings from the `source` iterable. * * ```ts * hasAll("hello world", ["hello", "world"]); // true * ``` * * ```ts * pipe("hello world", hasAll(["hello", "world"])); // true * ``` */ declare const hasAll: { (source: Iterable<string>): (target: string) => boolean; (target: string, source: Iterable<string>): boolean; }; //#endregion export { hasAll };