rescript
Version:
ReScript toolchain
26 lines (19 loc) • 450 B
JavaScript
;
var Caml_option = require("./caml_option.js");
function getItem(s, obj) {
return Caml_option.null_to_opt(obj.getItem(s));
}
function setItem(k, v, obj) {
obj.setItem(k, v);
}
function removeItem(s, obj) {
obj.removeItem(s);
}
function key(i, obj) {
return Caml_option.null_to_opt(obj.key(i));
}
exports.getItem = getItem;
exports.setItem = setItem;
exports.removeItem = removeItem;
exports.key = key;
/* No side effect */