gradum-kit - v0.1.0
    Preparing search index...

    Function eachEqualToAny

    • Function

      eachEqualToAny

      Type Parameters

      • Type = any

        The type of the compared entries.

      Parameters

      • values: Type[]

        The allowed values.

      • ...entries: Type[]

        The entries to check. Passing none counts as a match.

      Returns boolean

      true if every entry equals one of the allowed values.

      Check whether every entry matches at least one of the allowed values, compared loosely (==). Use it to validate that a set of inputs all fall within a known set.