fix: update JavaScript string.prototype.trimleft article from stub (#25981)
* fix: update JavaScript string.prototype.trimleft article from stub * Removed extra characer
This commit is contained in:
committed by
Manish Giri
parent
ee330a7ca7
commit
4606509d9c
@ -3,13 +3,15 @@ title: String.prototype.trimLeft
|
|||||||
---
|
---
|
||||||
## String.prototype.trimLeft
|
## String.prototype.trimLeft
|
||||||
|
|
||||||
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/javascript/standard-objects/string/string-prototype-trimleft/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
|
The `trimLeft()` function removes any whitespace characters from the start (the left side) of a given string. It returns a new string. It does not modify the original string.
|
||||||
|
|
||||||
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
|
Examples:
|
||||||
|
```js
|
||||||
|
" This string has two spaces at the beginning and a tab and two spaces at the end. ".trim();
|
||||||
|
// output: "This string has two spaces at the beginning and a tab and two spaces at the end. "
|
||||||
|
```
|
||||||
|
|
||||||
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|
Note - `trimLeft()` removes any whitespace character, not just spaces or tabs.
|
||||||
|
|
||||||
#### More Information:
|
#### More Information:
|
||||||
<!-- Please add any articles you think might be helpful to read before writing the article -->
|
- [String.prototype.trimLeft() on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user