Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
huggingfacejs
/
inference-widgets
like
7
Running
on
CPU Upgrade
App
Files
Files
Community
1
8b20a2e
inference-widgets
/
packages
/
inference
/
src
/
utils
/
typedInclude.ts
machineuser
Sync widgets demo
94753b6
8 months ago
raw
Copy download link
history
blame
Safe
112 Bytes
export
function
typedInclude<V, T
extends
V>(
arr
:
readonly
T[],
v
: V): v is T {
return
arr.
includes
(v
as
T);
}