title: Search Nested Array with String (name) - Familty Tree Array
body: <p>I have a big big array with contains names of People across 8 centuries and its quite huge, I want to build a search mechanism, that a user enters name and</p>
  <ol>
  <li>should search that nested array</li>
  <li>and also from that point all the way up to origin (first name) should get all the names as well.</li>
  </ol>
  <p>Currently it just searches first element with .map which is understood. One way is to add nested .map filters but that isn't ideal and number of items are in mulitple hundreds.</p>
  <p>Required: Search whole of nested array and return an new array from that point upwards.</p>
  <p>Here's the <a href="https://codesandbox.io/s/objective-stonebraker-79yx34?file=/src/App.js" rel="nofollow noreferrer">CodeSandbox</a></p>