We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exclude
In my case
const obj = { '_name': true } console.log(camelcaseKeys(obj)); // { name: true }
but I don't want to lose leading _ in _name, how can I achieve it?
_
_name
Thanks
The text was updated successfully, but these errors were encountered:
It could, yes, but you can also solve this with a regex: {exclude: [/^_/]}.
{exclude: [/^_/]}
Sorry, something went wrong.
I just want to keep the leading _, for example, when the string is _name_obj, I just want to get _nameObj after conversion
_name_obj
_nameObj
with {exclude: [/^_/]}, it will stay _name_obj, is there some way to achieve it? Or it is not a normal demand?
I think we could add a preserveLeadingUnderscore: true option. Must be added to camelcase first though.
preserveLeadingUnderscore: true
camelcase
Any progress? Want to skip camelcase for BigNumber Object, it seems exclude support function would be more reasonable
No branches or pull requests
In my case
but I don't want to lose leading
_
in_name
, how can I achieve it?Thanks
The text was updated successfully, but these errors were encountered: