setQueryParam.js 224 Bytes edit raw blame history 1 2 3 4 5 6 7 8 9 import _ from 'lodash'; export const setQueryParam = (location, query) => ({ pathname: location.pathname, hash: location.hash, query: _.assign({}, location.query, query), });