UNPKG

rescript

Version:
26 lines (19 loc) 450 B
'use strict'; 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 */