Result.isOk returns whether or not the result is Ok
Result.isOk
Ok
Result<T, E>.isOk(): boolean;
div(2, 2).isOk(); // => true div(2, 0).isOk(); // => false