Skip to content

takeLast

String.takeLast(target, amount)

Takes the last amount characters from target string.

Example

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

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

pipe("hello world", String.takeLast(5)); // "world"