Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

initVariables

import { initVariables } from "https://raw.githubusercontent.com/Hatscat/MetavaScript/main/index.ts";

generates statements of variable initializations with provided values

@example
// returns "pX=3;pY=2"
const varNames = { player: { x: "pX", y: "pY" } }
const varValues = { player: { x: 3, y: 2 } }
initVariables(varNames, varValues)
function initVariables(
varNames: VarTree,
varValues: VarTree,
..._keys: string[],
): string;
§
initVariables(varNames: VarTree, varValues: VarTree, ..._keys: string[]): string
[src]

§Parameters

§
varNames: VarTree
[src]
§
varValues: VarTree
[src]
§
..._keys: string[] optional
[src]

§Return Type

§
string
[src]