Browse documentation

set

Updates a nested object path.

Table of contents

Category

Value

Import

js
import { set } from "valyrian.js/utils";

Public signature

ts
(obj: any, path: string, value: any): void

Parameters

ts
obj: any, path: string, value: any

Result

ts
void

Observable effects

Creates missing path segments and writes the value into the source object.