mirror of
https://github.com/alrayyes/wiki.git
synced 2024-12-01 15:26:23 +00:00
15 lines
273 B
Markdown
15 lines
273 B
Markdown
---
|
|
id: 364e742e-58e8-4a1e-baa9-e9265a533301
|
|
title: trimStart
|
|
---
|
|
|
|
# Description
|
|
|
|
Trims the start of a [JavaScript Strings](20200922164551-strings).
|
|
Opposite of [trimEnd](20201116100239-trimend).
|
|
|
|
# Syntax
|
|
|
|
``` javascript
|
|
console.log(" abc ".trimStart()); // 'abc '
|
|
```
|