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

x/remapper/src/mod.ts>jsonFill

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

If a property doesn't exist through a path of objects, fill objects to get to that property.

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.