import { trimEnd } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/string/index.js";
Removes trailing spaces or custom characters of the string.
Examples
Example 1
Example 1
import { trimEnd } from "@ayonli/jsext/string";
console.log(trimEnd(" hello world ")); // " hello world"
console.log(trimEnd(" hello world! ", " !")); // " hello world"