dropLast
dropLast(target, amount)
Removes the last amount
characters from target
string.
ts
dropLast("hello world", 6); // "hello"
ts
pipe("hello world", dropLast(6)); // "hello"