source: imaps-frontend/node_modules/react-use/lib/misc/hookState.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 356 bytes
RevLine 
[d565449]1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.resolveHookState = void 0;
4function resolveHookState(nextState, currentState) {
5 if (typeof nextState === 'function') {
6 return nextState.length ? nextState(currentState) : nextState();
7 }
8 return nextState;
9}
10exports.resolveHookState = resolveHookState;
Note: See TracBrowser for help on using the repository browser.