updux/dist/buildInitial/index.js

11 lines
491 B
JavaScript
Raw Normal View History

2019-10-22 22:15:08 +00:00
"use strict";
2019-10-24 15:52:36 +00:00
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const fp_1 = __importDefault(require("lodash/fp"));
2019-10-22 22:15:08 +00:00
function buildInitial(initial = {}, subduxes = {}) {
2019-10-24 15:52:36 +00:00
return fp_1.default.isPlainObject(initial) ? fp_1.default.mergeAll([subduxes, initial]) : initial;
}
exports.default = buildInitial;
//# sourceMappingURL=index.js.map