Skip to main content
Module

x/unknownutil/mod.ts>isAny

🦕 A lightweight utility pack for handling unknown type
Go to Latest
function isAny
Re-export
import { isAny } from "https://deno.land/x/unknownutil@v3.17.1/mod.ts";

Assume x is anyand always returntrueregardless of the type ofx`.

import { is } from "https://deno.land/x/unknownutil@v3.17.1/mod.ts";

const a = "a";
if (is.Any(a)) {
  // a is narrowed to any
  const _: any = a;
}

Parameters

_x: unknown

Returns

_x is any