Skip to content

endsWith

String.endsWith(target, source)

Checks if target string ends with source string.

Example

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

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

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