Skip to content

hasNone

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