You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to change obj.a[1].c2.d2 to 9. I naively tried to do setObj('a[1].c2.d2', 9) but this of course jsut merged a new property 'a[1].c2.d2 with a value of 9 into the source object.
So yeah...any help?
Also: I propose to some day extend the documentation in more detail on that regard ^^
EDIT
Ok jsut a seocnd later I found out you can jsut add an arbitrary number of arguments where the alst one will be the value. LOL
This should be documented somewhere or maybe I cannot read correctly.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I know some basic usage, but it is written in the docs all the time "It is quite powerful". I would like to use this power ^^
But I simply cannot find information how to use it really.
Take this for example:
I would like to change
obj.a[1].c2.d2to 9. I naively tried to dosetObj('a[1].c2.d2', 9)but this of course jsut merged a new property'a[1].c2.d2with a value of 9 into the source object.So yeah...any help?
Also: I propose to some day extend the documentation in more detail on that regard ^^
EDIT
Ok jsut a seocnd later I found out you can jsut add an arbitrary number of arguments where the alst one will be the value. LOL
This should be documented somewhere or maybe I cannot read correctly.
I did this to change g in
...g:5}...to 9:I had no idea it works like this until now...
All reactions