MCPcopy
hub / github.com/gopherjs/gopherjs / LastIndex

Function LastIndex

compiler/natives/src/strings/strings.go:19–21  ·  view source on GitHub ↗
(s, sep string)

Source from the content-addressed store, hash-verified

17}
18
19func LastIndex(s, sep string) int {
20 return js.InternalObject(s).Call("lastIndexOf", js.InternalObject(sep)).Int()
21}
22
23func Count(s, sep string) int {
24 n := 0

Callers

nothing calls this directly

Calls 3

InternalObjectFunction · 0.92
IntMethod · 0.45
CallMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…