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

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

TypeScript-STL (Standard Template Library, migrated from C++)
Latest
method StringUtil.trim
import { StringUtil } from "https://deno.land/x/tstl@v3.0.0/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.