MCPcopy Create free account
hub / github.com/Effect-TS/effect / lastIndexOf

Function lastIndexOf

packages/effect/src/String.ts:644–645  ·  view source on GitHub ↗
(searchString: string)

Source from the content-addressed store, hash-verified

642 * @since 2.0.0
643 */
644export const lastIndexOf = (searchString: string) => (self: string): Option.Option<number> =>
645 Option.filter(Option.some(self.lastIndexOf(searchString)), number.isGreaterThanOrEqualTo(0))
646
647/**
648 * Computes locale-aware ordering for two strings, with optional locales and

Callers

nothing calls this directly

Calls 2

filterMethod · 0.80
someMethod · 0.80

Tested by

no test coverage detected