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