mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-29 14:36:22 +00:00
16 lines
271 B
Markdown
16 lines
271 B
Markdown
|
---
|
||
|
id: 5656f5af-f543-4439-b52f-e83122c0dce0
|
||
|
title: trimEnd
|
||
|
---
|
||
|
|
||
|
# Description
|
||
|
|
||
|
Trims the end of a [JavaScript Strings](20200922164551-strings).
|
||
|
Opposite of [trimStart](20201116100205-trimstart).
|
||
|
|
||
|
# Syntax
|
||
|
|
||
|
``` javascript
|
||
|
console.log(" abc ".trimEnd()); // " abc'
|
||
|
```
|