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

increment

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

increment a variable

@example
// return "a++"
increment("a")
@example
// return "a+=2"
increment("a", 2)
@example
// return "++a"
increment("a", 1, { before: true })
function increment(
variable: string,
step?: Primitive,
{ before }?,
): string;
§
increment(variable: string, step?: Primitive, { before }?): string
[src]

§Parameters

§
variable: string
[src]
§
step?: Primitive optional
[src]
§
{ before }? optional
[src]

§Return Type

§
string
[src]