Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tstl/benchmark/internal/StringUtil.ts>StringUtil.trim

TypeScript-STL (Standard Template Library, migrated from C++)
Go to Latest
method StringUtil.trim
import { StringUtil } from "https://deno.land/x/tstl@v2.4.11/benchmark/internal/StringUtil.ts";

Remove all designated characters from the beginning and end of the specified string.

Parameters

str: string

The string whose designated characters should be trimmed.

...args: string[]

Designated character(s).

Returns

string

Updated string where designated characters was removed from the beginning and end.