Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/remapper/src/mod.ts>jsonSet

A framework for Beat Saber map scripting.
Go to Latest
function jsonSet
Re-export
import { jsonSet } from "https://deno.land/x/remapper@3.0.0/src/mod.ts";

Set a property in an object, add objects if needed.

Parameters

obj: Json

Base object.

prop: string

Property on this object to check. Can be multiple objects deep.

value: any

Value to set the property to.