@tempots/std

trimChars() function

trimChars removes from the beginning and the end of the string any character that is present in charlist.

Signature:

trimChars: (value: string, charlist: string) => string

Parameters

Parameter

Type

Description

value

string

The string to trim.

charlist

string

The characters to remove from the beginning and end of the string.

Returns: string

The trimmed string.