UNPKG

ionstore

Version:

A very simple isomorphic key-value store with a Map-like API for persisting session data.

12 lines (11 loc) 163 B
/* MAIN */ const attempt = (fn, fallback) => { try { return fn(); } catch { return fallback; } }; /* EXPORT */ export { attempt };