Skip to content
New issue

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

set should not use array when object key string start with number #357

Open
everyx opened this issue Oct 15, 2023 · 0 comments · May be fixed by #383
Open

set should not use array when object key string start with number #357

everyx opened this issue Oct 15, 2023 · 0 comments · May be fixed by #383

Comments

@everyx
Copy link

everyx commented Oct 15, 2023

var radash = require("radash")

console.log(JSON.stringify(radash.set({}, 'key.0key2', 'value')))

will output {"key":[]}

but what except is {"key": {"0key2": "value"}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant