title: How to Create a new array with selected element from existing array in TypeScript?
body: <p>I'am new to Angular and TypeScript, i'am trying to implement this one but i couldn't make it possible.</p>
  <p>My question is i have an array with multiple nested arrays. every nested array has 'id' value. i need get all the nested array 'id' values and store those values to the new array.</p>
  <p>this is what i have right now</p>
  <pre><code>[parentArray]
    0: nestedArray
       count: 0
       no: null
       level: null
       id: 1
    1: nestedArray
       count: 0
       no: null
       level: null
       id: 22
    2: nestedArray
       count: 0
       no: null
       level: null
       id: 34
  </code></pre>
  <p>I want an array like this, example - idInformation = [1,22,34].</p>
  <p>I tried with filter but it gives all the values, i don't know exactly how to do this in TypeScript. please help me to get this or any help also appreciable.</p>