@tanstack/persister
Version:
Utilities for persisting state to local storage, session storage, indexedDB, and more.
12 lines (11 loc) • 380 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
function isFunction(value) {
return typeof value === "function";
}
function parseFunctionOrValue(value, ...args) {
return isFunction(value) ? value(...args) : value;
}
exports.isFunction = isFunction;
exports.parseFunctionOrValue = parseFunctionOrValue;
//# sourceMappingURL=utils.cjs.map