@plq/use-persisted-state
Version:
useState hook with persistence in storage
10 lines • 355 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function isPromise(value) {
return !!value
&& (Object.prototype.toString.call(value) === '[object Promise]'
|| typeof value === 'function')
&& typeof value.then === 'function';
}
exports.default = isPromise;
//# sourceMappingURL=is-promise.js.map