skip to Main Content

Javascript – How to access nested json object inside array in react js

I want to access nested JSON object values by iterating. This is the data I get from my query: {"_id":"654d4224fb04863b8eb89200","firms":[{"_id":["65423d5c240388c1594e7b7b"],"name":["Camaro Coiled Tubing"]}]} {"_id":"654d4224fb04863b8eb8920d","firms":[{"_id":["65423d5c240388c1594e7b82"],"name":["DANCO Coiled Tubing"]}]} {"_id":"654d4224fb04863b8eb8921b","firms":[{"_id":["65423d5c240388c1594e7b7d"],"name":["San Joaquin Bit"]}]} I would like to create a second array with only the firm…

VIEW QUESTION
Back To Top
Search