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

x/remapper/src/mod.ts>arrClassToJson

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

Converts an array of classes to Json. Used internally in Difficulty to export to Json.

Parameters

arr: T[]

Array to convert.

outputJSON: Json

Parent Json that array is attached to.

prop: string

Property of the array in the outputJSON value.

optional
callback: (obj: any) => void

Optional callback to run on each class copy before conversion.