deno.land / x / froebel@v0.23.2 / oneOf.ts
12345678910111213/** Checks if `v` is one of `cmps`. */const oneOf = < T, TT extends (T extends string ? string & T : T extends number ? number & T : any)[],>( value: T, ...cmps: TT): value is TT[number] => cmps.includes(value as any);
export default oneOf;
Version Info