hasAny
ts
function String.hasAny(
target: string,
source: Iterable<string>,
): booleanChecks if target string contains any of the strings from the source iterable.
Example
ts
import { String } from "@monstermann/string";
String.hasAny("hello world", ["foo", "world"]); // truets
import { String } from "@monstermann/string";
pipe("hello world", String.hasAny(["foo", "world"])); // true