UNPKG

antd-mobile

Version:
18 lines (17 loc) 584 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mergeProps = mergeProps; var _assignWith = _interopRequireDefault(require("lodash/assignWith")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function mergeProps(...items) { function customizer(objValue, srcValue) { return srcValue === undefined ? objValue : srcValue; } let ret = Object.assign({}, items[0]); for (let i = 1; i < items.length; i++) { ret = (0, _assignWith.default)(ret, items[i], customizer); } return ret; }