Latest
function trimEnd
import { trimEnd } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/string.js";

Removes trailing whitespace or specified characters from string.

Examples

_.trimEnd(' abc '); // => ' abc'

.trimEnd('--abc--', '-'); // => '-_-abc'

Parameters

string
chars
guard