Package: effect
Module: String
Returns the Unicode code point at the specified index safely, or None if the index is out of bounds.
Example (Reading code points)
import { pipe, String } from "effect"
pipe("abc", String.codePointAt(1)) // Option.some(98)
pipe("abc", String.codePointAt(10)) // Option.none()
Signature
declare const codePointAt: { (index: number): (self: string) => Option.Option<number>; (self: string, index: number): Option.Option<number>; }
Since v2.0.0