I have an array that has another array inside.
[
    [
        {
          "userId": 1,
          "title": "title 1",
        },
        {
          "userId": 2,
          "title": "title 2",
        }
    ],
    [
        {
          "userId": 3,
          "title": "title 3",
        }
    ]
]
I am trying to get a new array with userId only. For e.g.
[
  { "userId": 1 },
  { "userId": 2 },
  { "userId": 3 }
]
array.map(o => o.userId) works for array of objects and don't know how can i get inside array.
Any help is appreciated
 
     
     
     
     
    