UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

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