Checks if the given value is present in the provided array, string, or object keys.

  • Parameters

    • value: string

      The value to search for.

    • values: string | object | any[]

      The allowed values to check against. If a string is provided, it is checked against individual characters. If an object is provided, its keys are used for comparison.

    Returns boolean

    True if the value is found, false otherwise.