node-lib

@wtasnorg/node-lib


@wtasnorg/node-lib / lastIndexFuncString

Function: lastIndexFuncString()

lastIndexFuncString(s, f): number

Defined in: src/strings.ts:614

LastIndexFunc returns the index into s of the last Unicode code point satisfying f(c), or -1 if none do.

Parameters

s

string

Input string.

f

(_ch) => boolean

Predicate function.

Returns

number

Index of last matching character, or -1.