node-lib

@wtasnorg/node-lib


@wtasnorg/node-lib / trimRightString

Function: trimRightString()

trimRightString(s, cutset): string

Defined in: src/strings.ts:1125

TrimRight returns a slice of the string s with all trailing Unicode code points contained in cutset removed.

Parameters

s

string

Input string.

cutset

string

String of characters to trim from right.

Returns

string

Right-trimmed string.