#short
#javascript
#arrays
#array-of-dict
I know similar questions have been asked before, but this one is a little different. I have an array of unnamed objects, which contain an array of named objects, and I need to get the object where "name" is "string 1". Here is an example array.
var array = [
{ name:"string 1", value:"this", other: "that" },
{ name:"string 2", value:"this", other: "that" }
];
Update: I should have said this earlier, but once I find it, I want to replace it with an edited object.
Watch video Find a value in an array of objects in Javascript online without registration, duration hours minute second in high quality. This video was added by user Code Samples 07 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 247 once and liked it 4 people.