Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>L.Has

👷 TypeScript's largest type utility library, now on Deno
Latest
type alias L.Has
import { type L } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts";
const { Has } = L;

Check whether L has a entry of key K that matches M

Examples

Example 1

Type Parameters

L extends List
K extends Key
optional
M extends any = any
optional
match extends Match = "default"
definition: OHas<ObjectOf<L>, `${K & number}` | K, M, match>