node-lib

@wtasnorg/node-lib


@wtasnorg/node-lib / lastIndexByteString

Function: lastIndexByteString()

lastIndexByteString(s, c): number

Defined in: src/strings.ts:599

LastIndexByte returns the index of the last instance of the byte c in s, or -1 if c is not present in s.

Parameters

s

string

Input string.

c

number

Byte value (0–255) to search for.

Returns

number

Index of last occurrence, or -1.