node-lib

@wtasnorg/node-lib


@wtasnorg/node-lib / trimRightFuncString

Function: trimRightFuncString()

trimRightFuncString(s, f): string

Defined in: src/strings.ts:1146

TrimRightFunc returns a slice of the string s with all trailing Unicode code points c satisfying f(c) removed.

Parameters

s

string

Input string.

f

(_ch) => boolean

Predicate function.

Returns

string

Right-trimmed string.