wiki/content/20201116100345-trim.md

20 lines
369 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-29 18:27:12 +00:00
date: 2020-11-16
2024-05-06 20:40:05 +00:00
id: 544b3e28-5681-49b6-8054-0fd169a3f65c
title: trim
---
# Description
Removes all
[whitespace](20201116100926-characters_that_count_as_whitespace) from
both ends of a [String](20200922164551-strings). Combination of
[trimStart](20201116100205-trimstart) and
[trimEnd](20201116100239-trimend)
# Syntax
``` javascript
console.log(' abc '.t)
```