Module function reference

one_of

A reference entry for one_of

Module function · Validation

one_of(mixed value, list allowed) ⇒ boolean

Checks whether a value matches one of the values in an allowed list.