I have a question regarding iteration in the js file of an lwc component
I have a array of the following JSON format
Now, is there any way to directly get the value from this array using the key?
I realize that I can iterate through the array, but I don't want to do that because there is already an existing loop and if I have to iterate through this, that will result in an inner loop , which is not the best practice.
I would like to understand if there is some way to get the value, like we do for apex, using the get() method. If this is not possible is there any possibility of creating a map from the above JSON and then use that to fetch the value?