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 · 1 comment · 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 · 1 comment · 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"}}

@aleclarson
Copy link

Hi @everyx, this issue has a fix available in radashi@beta today (see #15). An official release is pending. We'd love to have you participate in the discussion and/or development of the radashi-org/radashi fork. 😄

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.

2 participants