Skip to main content
Module

x/fae/update.ts>update

A functional module for Deno inspired from Ramda.
Latest
variable update
import { update } from "https://deno.land/x/fae@v1.1.1/update.ts";

Returns a new array with copy of list and value replaced at index.

 Fae.adjust(2, Fae.add(1), [0, 1, 2, 3]) // [0, 1, 3, 3]
 Fae.adjust(-3, Fae.add(1), [0, 1, 2, 3]) // [0, 2, 2, 3]

type

Update