UNPKG

@huggingface/inference

Version:

Typescript client for the Hugging Face Inference Providers and Inference Endpoints

4 lines (3 loc) 112 B
export function typedInclude<V, T extends V>(arr: readonly T[], v: V): v is T { return arr.includes(v as T); }