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

x/rambda/mod.ts>adjust

Faster and smaller alternative to Ramda
Go to Latest
function adjust
import { adjust } from "https://deno.land/x/rambda@9.2.1/mod.ts";

It replaces index in array list with the result of replaceFn(list[i]).

Parameters

index: number
replaceFn: (x: T) => T
list: T[]

Parameters

index: number
replaceFn: (x: T) => T

Returns

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