Module

x/rambda/rambda.js>assocPath

Faster and smaller alternative to Ramda
Latest
function assocPath
import { assocPath } from "https://dotland.deno.dev/x/rambda@9.4.1/rambda.js";

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