trimEnd

Description

Trims the end of a [JavaScript Strings](JavaScript Strings). Opposite of trimStart.

Syntax

console.log(” abc “.trimEnd()); // ” abc’