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

x/rambda/mod.ts>assocPath

Faster and smaller alternative to Ramda
Go to Latest
function assocPath
import { assocPath } from "https://deno.land/x/rambda@9.2.1/mod.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