isFailure

inline fun <T> Result<T>.isFailure(predicate: (Throwable) -> Boolean): Boolean(source)

Returns false if Success or returns the result of the given predicate to the Failure value.