isSuccess<T>(x): x is Success<T>
T
x
x is Success<T>
Checks if x is a Success.
isSuccess("foobar")// => true isSuccess(new Error())// => false
• T
The value to check.
true if x is a Success, false otherwise.
true
false