API reference › @evolu/common › Type › trim
function trim(value: string): string & Brand<"Trimmed">;
Defined in: packages/common/src/Type.ts:5404
Trims a string and returns a TrimmedString.
Example
import { assertEqual, trim } from "@evolu/common";
assertEqual(trim(" Evolu "), "Evolu");