Skip to content

has

String.has(target, source)

Checks if target string contains source string.

Example

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

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

pipe("hello world", String.has("world")); // true