Skip to content

takeLast

takeLast(target, amount)

Takes the last amount characters from target string.

ts
takeLast("hello world", 5); // "world"
ts
pipe("hello world", takeLast(5)); // "world"