title: TypeError: this.responsearray.find is not a function angular
body: <p>I am getting the below error when trying to countryName in the response array.</p>
  
  <pre><code>TypeError: this.responsearray.find is not a function
  </code></pre>
  
  <p>Here is my ts code</p>
  
  <p>this is what I declared </p>
  
  <pre><code> responsearray: any;
        editCountry(row){
          let founditem = this.responsearray.find(item =&gt; item.countryName==row);
          console.log(founditem)
          if(founditem !== undefined){
          const dialogRef = this.dialog.open(popupcomponent, {
            width: '800px',
            panelClass: 'custom-modalbox',
            disableClose: true,
            data: {pageValue:founditem}   
          });
  
          dialogRef.afterClosed().subscribe(result =&gt; {
            console.log('The dialog was closed');
            if (!result) {
              this.loadData();
            }
          });
        }
        }
  </code></pre>
  
  <p>Here is my Interface</p>
  
  <pre><code>export interface assumption {
  countryID: number;    
  CountryName: string;
  UserId: number;
  UserName: string;
  JoiningDate: String;
  BirthDate: String;
  OverallLength:number;}
  </code></pre>
  
  <p>Please let me know what I am doing wrong here.</p>