Skip to main content

in

Check if the string is contained in a list. Returns true if found.


Examples

Check if prod is in the list of environments:

"prod".in(["dev","test","prod"])