query
On this page

trim

lib.trim

Docs pulled from | This Revision | about 1 hour ago


Remove leading and trailing whitespace from a string s.

Whitespace is defined as any of the following characters: " ", "\t" "\r" "\n"

Inputs

s
The string to trim

Type

trim :: string -> string

Examples

lib.strings.trim usage example

trim "   hello, world!   "
=> "hello, world!"
(lib.strings.trim)

Noogle detected

Aliases