Trims the whitespace from the beginning and the end. This is an alias for .trim(). Useful for when you're mapping over lists.
.trim()
[' hello ', ' world '].map(trim); // ['hello', 'world']; Copy
[' hello ', ' world '].map(trim); // ['hello', 'world'];
Trims the whitespace from the beginning and the end. This is an alias for
.trim()
. Useful for when you're mapping over lists.