Skip to main content
Module

x/rambda/index.d.ts>assocPath

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