Skip to content

Function.trim

github-actions[bot] edited this page Nov 18, 2026 · 4 revisions

umt / trim

Function: trim()

trim(): (value) => string

Defined in: Pipe/trim.ts:9

Creates a pipe operator that removes leading and trailing whitespace from a string

Returns

An operator that returns the trimmed string

(value) => string

Example

pipe("  hello  ", trim()); // "hello"

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally