The optional value.
The array which contains zero or one element.
import { some, none, toArray } from "./option.ts";
import { assertEquals } from "../deps.ts";
assertEquals(toArray(some(2)), [2]);
assertEquals(toArray(none()), []);
Generated using TypeDoc
Converts into an array.