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

Function localeCompare

packages/effect/src/String.ts:666–667  ·  view source on GitHub ↗
(that: string, locales?: Array<string>, options?: Intl.CollatorOptions)

Source from the content-addressed store, hash-verified

664 */
665export const localeCompare =
666 (that: string, locales?: Array<string>, options?: Intl.CollatorOptions) => (self: string): Ordering.Ordering =>
667 number.sign(self.localeCompare(that, locales, options))
668
669/**
670 * Matches a string against a pattern safely and returns `Option.some` with the match

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected