UNPKG

bs-platform

Version:

ReScript compiler, OCaml standard libary by ReScript and its required runtime support

51 lines (39 loc) 613 B
import * as Caml_option from "./caml_option.mjs"; function test(x) { return x === null; } function getExn(f) { if (f !== null) { return f; } throw new Error("Js.Null.getExn"); } function bind(x, f) { if (x !== null) { return f(x); } else { return null; } } function iter(x, f) { if (x !== null) { return f(x); } } function fromOption(x) { if (x !== undefined) { return Caml_option.valFromOption(x); } else { return null; } } var from_opt = fromOption; export { test , getExn , bind , iter , fromOption , from_opt , } /* No side effect */