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

x/rambda/immutable.d.ts>assocPath

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

It makes a shallow clone of obj with setting or overriding with newValue the property found with path.

Parameters

path: Path
newValue: any
obj: object

Parameters

path: Path
newValue: any

Returns

(obj: object) => Output

Parameters

path: Path

Returns

(newValue: any) => (obj: object) => Output