Converts into a string for debug. It is not safe for serialization.
The optional value.
The string form.
import { some, none, toString } from "./option.ts";import { assertEquals } from "../deps.ts";assertEquals(toString(some(2)), "some(2)");assertEquals(toString(none()), "none"); Copy
import { some, none, toString } from "./option.ts";import { assertEquals } from "../deps.ts";assertEquals(toString(some(2)), "some(2)");assertEquals(toString(none()), "none");
Generated using TypeDoc
Converts into a string for debug. It is not safe for serialization.