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

ifElse

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

ternary condition

@example
// return "a>b?1:2"
ifElse("a>b", 1, 2)
function ifElse(
condition: Printable,
ifTrue: Printable,
ifFalse: Printable,
): string;
§
ifElse(condition: Printable, ifTrue: Printable, ifFalse: Printable): string
[src]

§Parameters

§
condition: Printable
[src]

§Return Type

§
string
[src]