We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 107028b commit 80e00fcCopy full SHA for 80e00fc
src/validation/drivers/validators/isExactly.ts
@@ -1,8 +1,6 @@
1
import { ValidationError } from "../../../errors"
2
3
-export const isExactly = <O>(values: Array<O>) => (
4
- i: unknown
5
-): O => {
+export const isExactly = <O>(values: Array<O>) => (i: unknown): O => {
6
for (let value of values) {
7
if (value === i) {
8
return value
0 commit comments