Skip to main content
Module

x/core_fn/uncurry/mod.ts>charAt

A collection of built-in object method and property as currying function
Latest
variable charAt
import { charAt } from "https://deno.land/x/core_fn@v1.0.0-beta.16/uncurry/mod.ts";

Returns the character at the specified index.

Examples

Example 1

charAt(0, 'hello') // 'h'
charAt(4, 'hello') // 'o'
charAt(100, 'hello') // ''

type

<T extends number, U extends string>(pos: T, val: U) => CharAt<T, U>