time-to-botec/squiggle/node_modules/@rescript/std/lib/js/js_undefined.js
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

51 lines
746 B
JavaScript

'use strict';
var Caml_option = require("./caml_option.js");
function test(x) {
return x === undefined;
}
function testAny(x) {
return x === undefined;
}
function getExn(f) {
if (f !== undefined) {
return f;
}
throw new Error("Js.Undefined.getExn");
}
function bind(x, f) {
if (x !== undefined) {
return f(x);
}
}
function iter(x, f) {
if (x !== undefined) {
return f(x);
}
}
function fromOption(x) {
if (x !== undefined) {
return Caml_option.valFromOption(x);
}
}
var from_opt = fromOption;
exports.test = test;
exports.testAny = testAny;
exports.getExn = getExn;
exports.bind = bind;
exports.iter = iter;
exports.fromOption = fromOption;
exports.from_opt = from_opt;
/* No side effect */