Created
December 22, 2022 00:33
-
-
Save slavarazum/edbd8e96b7060f4b188e470287f715e7 to your computer and use it in GitHub Desktop.
One of Value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function oneOf(values) { | |
return function (value) { | |
return values.indexOf(value) !== -1; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment