Javascript builtins: String: trimRight

Discouraged

This feature may be a candidate for removal from web standards or browsers.
TC39 recommends using trimStart() and trimEnd() instead. The trimLeft() and trimRight() aliases are provided for compatibility with old code.