You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the things I like about lodash is the ability to pull in individual methods rather than the whole lodash toolchain via:
`import isEqual from "lodash/isEqual"
For your project, the instructions state that you should _.mixin(...) to add inflector methods to lodash, but I never use lodash that way.
I quickly found that I could do: import inflection from "lodash-inflection" export const singularize = inflection.singularize.bind(inflection)
and it seems to be working fine.
So, my request is to add support to importing individual methods in a style similar to lodash, so:
import singularize from "lodash-inflection/singularize"
etc.
The text was updated successfully, but these errors were encountered:
One of the things I like about lodash is the ability to pull in individual methods rather than the whole lodash toolchain via:
`import isEqual from "lodash/isEqual"
For your project, the instructions state that you should
_.mixin(...)
to add inflector methods to lodash, but I never use lodash that way.I quickly found that I could do:
import inflection from "lodash-inflection"
export const singularize = inflection.singularize.bind(inflection)
and it seems to be working fine.
So, my request is to add support to importing individual methods in a style similar to lodash, so:
import singularize from "lodash-inflection/singularize"
etc.
The text was updated successfully, but these errors were encountered: