UNPKG

150 BJavaScriptView Raw
1const isDeref = (x) => x != null && typeof x["deref"] === "function";
2const deref = (x) => isDeref(x) ? x.deref() : x;
3export {
4 deref,
5 isDeref
6};