powered by
result
Checks if an object is of result class
is_result(obj)
TRUE if object is of result class, FALSE otherwise
TRUE
FALSE
object to check
is_result(success()) is_result(failure()) is_result(42)
Run the code above in your browser using DataLab