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

group

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

container for arbitrary expressions

@example
// returns "3*(1+2)"
mul(3, group(add(1, 2)))
@example
// returns "(a,b,c)"
group(["a", "b", "c"])
@example
// returns "{a;b}"
group(statements("a", "b", "c"), "}")
function group(content: Printable, border?: ")" | "}"): string;
§
group(content: Printable, border?: ")" | "}"): string
[src]

§Parameters

§
border?: ")" | "}" optional
[src]

§Return Type

§
string
[src]