Skip to content

hasAny

hasAny(target, source)

Checks if target string contains any of the strings from the source iterable.

ts
hasAny("hello world", ["foo", "world"]); // true
ts
pipe("hello world", hasAny(["foo", "world"])); // true