# Major edits made to my question about using a string or array to index object in JavaScript

I have a question about my post: Dynamic way to use string/array as index of object in javascript

I see that my first attempt at this question was outside the scope of what I should ask at Code Review, as the solution I offered was not working for purpose, and what the code needed to do was not clearly explained. I have edited the question a lot, now including a solution that is fit for purpose and explained more clearly what it is needed to do. From reading help-reopen-questions it seems that after commenting that the question has been improved (which I've done), the next step is to ask a question here? Is there a problem with the question as it currently stands for Code Review?

That said, I hesitate to reopen it, because I'm not 100% sure I understand what you are trying to accomplish with this code. Why are you calling the function as change_object_using_path_string("example_object", …) rather than change_object_using_path_string(example_object, …)? The former basically forces you to use the eval(), which you are trying to avoid.