I have an array of object and inside every array i have list of users, when i search i should be able to search the users and return value without effecting the existing structure.
[stackblitz](https://stackblitz.com/edit/angular-yghfbw?file=src/app/app.component.ts)

I have tried but its not working have shared the stackblitz link where I have done

```
userList = [
    { state: 'KL', level: 1, USERS: ['jane', 'kete'] },
    { state: 'TN', level: 1, USERS: ['john', 'rock'] },
    { state: 'MH', level: 2, USERS: ['rahul', 'ricky'] },
    { state: 'AP', level: 2, USERS: ['ram', 'sham'] },
  ];

handleSearch(kete) // search us an input field detailed in stackblitz link
handleSearch = (e) => {
    this.userList = this.orgList;
    const user = this.searchFunction(this.userList, e.target.value);
    console.log(user);
  };

  // search function
  searchFunction = (arr, searchVal) => {
    return arr.map((item) => {
      console.log(item);
      const data = item.USERS.filter((user) =>
        user.toLowerCase()?.includes(searchVal?.toLowerCase())
      );
      return { ...item, data };
    });
  };

```