endsWith
ts
function String.endsWith(target: string, source: string): booleanChecks if target string ends with source string.
Example
ts
import { String } from "@monstermann/string";
String.endsWith("hello world", "world"); // truets
import { String } from "@monstermann/string";
pipe("hello world", String.endsWith("world")); // true