Module

std/assert/mod.ts>unreachable

The Deno Standard Library
Latest
function unreachable
import { unreachable } from "https://dotland.deno.dev/std@0.224.0/assert/mod.ts";

Use this to assert unreachable code.

Examples

Example 1

import { unreachable } from "https://deno.land/std@0.224.0/assert/unreachable.ts";

unreachable(); // Throws

Parameters

optional
reason: string

Returns

never