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

abortIf

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

early return when the condition is true

@example
// returns "if(a<42)return"
abortIf(isLess("a", 42))
function abortIf(condition: Printable): string;
§
abortIf(condition: Printable): string
[src]

§Parameters

§
condition: Printable
[src]

§Return Type

§
string
[src]