Hello everyone I am searching how to search inside a big object and all results are some small objects wit only children and not any grandchildren
my question is
let obj = {
  child1: {
    name: 'Nairi',
    age: 19
  },
  child2: {
    name: 'Zara',
    age: 19
  },
  child3: {
    name: 'Tyom',
    age: 20
  }
}I want to get entire child 3 if I'm searching for Tyom and child1 if for Nairi so that I could access other keys like their age etc...
 
    