import { refinement } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { isArray } = refinement;
An instance of Refinement<unknown, Array<unknown>>
.
Examples
Example 1
Example 1
import * as R from "./refinement.ts";
const result1 = R.isArray(null); // false
const result2 = R.isArray([]);
// true, a variable is now typed as Array<unknown>