util/convertLodashFp.js

  1. import { convert } from 'immutadot'
  2. import { lodashFpConvert } from './lodashFpConvert'
  3. /**
  4. * Converts and wraps a lodash/fp function.
  5. * @memberof util
  6. * @param {function} fn The lodash/fp function.
  7. * @return {function} Returns the wrapped function.
  8. * @see {@link util.convert|convert} for more information.
  9. * @since 0.2.0
  10. * @private
  11. */
  12. const convertLodashFp = fn => convert(lodashFpConvert(fn))
  13. /**
  14. * This is an alias for {@link core.convert}.
  15. * @memberof object
  16. * @function convert
  17. * @deprecated Use {@link core.convert}
  18. * @since 0.2.0
  19. */
  20. export {
  21. convertLodashFp,
  22. }