node-lib

@wtasnorg/node-lib


@wtasnorg/node-lib / trimFuncString

Function: trimFuncString()

trimFuncString(s, f): string

Defined in: src/strings.ts:1061

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

Parameters

s

string

Input string.

f

(_ch) => boolean

Predicate function.

Returns

string

Trimmed string.