index.js 354 B

1234567891011121314
  1. import merge from 'lodash/merge';
  2. import pick from 'lodash/pick';
  3. import uniqueId from 'lodash/uniqueId';
  4. import upperFirst from 'lodash/upperFirst';
  5. const toQueryString = obj => Object.keys(obj).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`).join('&');
  6. export {
  7. merge,
  8. pick,
  9. toQueryString,
  10. uniqueId,
  11. upperFirst,
  12. };