Module

x/rambda/immutable.d.ts>last

Faster and smaller alternative to Ramda
Go to Latest
function last
import { last } from "https://dotland.deno.dev/x/rambda@v9.2.0/immutable.d.ts";

It returns the last element of input, as the input can be either a string or an array.

Parameters

str: ""

Returns

undefined

Parameters

str: string

Returns

string

Parameters

list: readonly never[]

Returns

undefined

Type Parameters

T extends readonly unknown[]

Returns

LastArrayElement<T>

Type Parameters

T extends readonly unknown[]

Returns

LastArrayElement<T>