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

decrement

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

decrement a variable

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

§Parameters

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

§Return Type

§
string
[src]