Function isStr

  • Checks if the given value is a string.

    Parameters

    • val: unknown

      The value to be checked.

    Returns val is string

    Returns true if the value is a string, false otherwise.