jskatas.org Continuously Learn JavaScript. Your Way.

String API: string.trimEnd()

string.trimEnd() - removes whitespace from the end of a string

Donate to NGO Julenka. Support Ukranians in need. Julenka is an NGO which my brother founded in 2011 to support Ukranian families and kids in need.

string.trimEnd() removes whitespace from the end of a string

Links

Description of String.prototype.trimEnd() on MDN.
The specification describing `String.prototype.trimEnd()`.
The official tests for JavaScript (engines) for `trimStart`.
Blog post on the v8 blog.