Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/transformations/index.ts>toTrimmed

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function toTrimmed
import { toTrimmed } from "https://deno.land/x/valibot@v0.24.0/src/transformations/index.ts";

Creates a transformation function that removes the leading and trailing white space and line terminator characters from a string.

Returns

A transformation function.