Skip to content

trimEnd

trimEnd(target)

Removes whitespace from the end of target string.

ts
trimEnd("  hello world  "); // "  hello world"
ts
pipe("  hello world  ", trimEnd()); // "  hello world"