Module

x/rambda/index.d.ts>assocPath

Faster and smaller alternative to Ramda
Go to Latest
function assocPath
import { assocPath } from "https://dotland.deno.dev/x/rambda@v9.2.0/index.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