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