Question: Getting particular out of a JSON object in an array. Where I have two keys with the same name, will vary their position each time " "name" field for the car may be in different position.
How to get just the Redcar(Redcar is not constant) if its position change

```
{
    "links": [],
    "content": [
        {
          "name": "Redcar",
          "color":"red"
         },
        {
         "name":"Eric",
          "Age":"25"
       }
      ]
}

```

Answer: 
Use `Array.find()`

```js
let data = {
  "links": [],
  "content": [
      {
        "name": "Redcar",
        "color":"red"
      },
      {
       "name":"Eric",
       "Age":"25"
      }
   ]
}

let car = data.content.find(x => {return x.name == "Redcar"});

console.log(car);
```
If the position can change then you will want to search the array with .find()

```
let theRedCar = array.content.find( item => item.name === "Redcar" )

// theRedCar = { name: 'Redcar', color: 'red' }

```