Module

x/typebox/src/type/sets/set.ts>SetIncludes

Json Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
function SetIncludes
import { SetIncludes } from "https://dotland.deno.dev/x/typebox@0.33.22/src/type/sets/set.ts";

Returns true if element right is in the set of left

Type Parameters

T extends PropertyKey[]
S extends PropertyKey

Parameters

T: [...T]
S: S

Returns

TSetIncludes<T, S>