Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/froebel/oneOf.ts>default

A strictly typed utility library.
Go to Latest
variable default
import { default } from "https://deno.land/x/froebel@v0.18.0/oneOf.ts";

Checks if v is one of cmps.

type

<T, TT extends (T extends string ? string & T : T extends number ? number & T : any)[]>(value: T, ...cmps: TT) => value is TT[number]