Skip to content

hasAll

String.hasAll(target, source)

Checks if target string contains all strings from the source iterable.

Example

ts
import { String } from "@monstermann/string";

String.hasAll("hello world", ["hello", "world"]); // true
ts
import { String } from "@monstermann/string";

pipe("hello world", String.hasAll(["hello", "world"])); // true