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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Describe the Bug
Using keys of the type number can lead to unexpected results due to this check: https://github.com/bpmn-io/min-dash/blob/v3.6.0/lib/object.js#L44
number
Steps to Reproduce
import { set } from "min-dash"; const target = { todos: [ { name: "Buy milk" }, { name: "Call mum" } ] }; const path = ["todos", 0, "name"]; const value = "Buy eggs"; console.log(set(target, path, value)); // {0: Object, todos: "Buy eggs"}
CodeSandbox: https://codesandbox.io/s/min-dash-set-bug-18yhh?file=/src/index.js:0-276
Expected Behavior
set accepts keys of the type number as documented.
set
Environment
The text was updated successfully, but these errors were encountered:
Gets fixed via #18, cf. 682e3af#diff-b95070f3e064df7b1b17f118735b2c1d3cc2112a81eaa4d7d66a33a80f89a128R331.
Sorry, something went wrong.
👏
Released fix via v3.6.1.
v3.6.1
🚀
Successfully merging a pull request may close this issue.
Describe the Bug
Using keys of the type
number
can lead to unexpected results due to this check: https://github.com/bpmn-io/min-dash/blob/v3.6.0/lib/object.js#L44Steps to Reproduce
CodeSandbox: https://codesandbox.io/s/min-dash-set-bug-18yhh?file=/src/index.js:0-276
Expected Behavior
set
accepts keys of the typenumber
as documented.Environment
The text was updated successfully, but these errors were encountered: