Description
Trims the end of a JavaScript Strings. Opposite of trimStart.
Syntax
console.log("  abc  ".trimEnd()); // "  abc'Nov 16, 20201 min read
Trims the end of a JavaScript Strings. Opposite of trimStart.
console.log("  abc  ".trimEnd()); // "  abc'