import { R } from "https://deno.land/x/ahh@v0.10.3/mod.ts";
Returns whether res
is an Ok
.
Examples
Example 1
Example 1
import { R } from "./mod.ts";
console.log(R.isOk(1)); // true
console.log(R.isOk(Error())); // false
import { R } from "https://deno.land/x/ahh@v0.10.3/mod.ts";
Returns whether res
is an Ok
.
Example 1
import { R } from "./mod.ts";
console.log(R.isOk(1)); // true
console.log(R.isOk(Error())); // false