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

x/rambda/immutable.d.ts>update

Faster and smaller alternative to Ramda
Latest
function update
import { update } from "https://deno.land/x/rambda@9.4.1/immutable.d.ts";

It returns a copy of list with updated element at index with newValue.

Parameters

index: number
newValue: T
list: readonly T[]

Returns

readonly T[]

Parameters

index: number
newValue: T

Returns

(list: readonly T[]) => readonly T[]