Function fail

  • Creates an error object and throw it if the provided value is a string, otherwise throws the provided error object.

    Parameters

    Returns never