Skip to main content
Module

x/unknownutil/is.ts>isAny

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

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

import { is } from "@core/unknownutil";

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

Parameters

_x: unknown

Returns

_x is any