Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/index.d.ts>nth

Faster and smaller alternative to Ramda
Go to Latest
function nth
import { nth } from "https://deno.land/x/rambda@9.3.0/index.d.ts";

Curried version of input[index].

Parameters

index: number
input: string

Returns

string

Parameters

index: number
input: T[]

Returns

T | undefined

Parameters

n: number

Returns

{ <T>(input: T[]): T | undefined; (input: string): string; }