Skip to content

has

has(target, source)

Checks if target string contains source string.

ts
has("hello world", "world"); // true
ts
pipe("hello world", has("world")); // true