Module

x/rambda/files/index.d.ts>last

Faster and smaller alternative to Ramda
Latest
function last
import { last } from "https://dotland.deno.dev/x/rambda@9.4.1/files/index.d.ts";

Parameters

str: ""

Returns

undefined

Parameters

str: string

Returns

string

Parameters

list: readonly []

Returns

undefined

Parameters

list: never[]

Returns

undefined

Type Parameters

T extends unknown[]

Returns

LastArrayElement<T>

Type Parameters

T extends readonly unknown[]

Returns

LastArrayElement<T>

Parameters

str: string

Returns

string | undefined