title: I need to find a specific value in an array of arrays. Angular, Typescript
body: <p>I need to find a value in an array of arrays, but when I use the .find it returns undefined</p>
  <pre><code>import { Component, OnInit } from '@angular/core';
  import * as XLSX from 'xlsx';
  import { ExcelSheetsService } from '../services/excel-sheets.service';
  
  
  @Component({
    selector: 'app-hojaexcel',
    templateUrl: './hojaexcel.component.html',
    styleUrls: ['./hojaexcel.component.css']
  })
  export class HojaexcelComponent implements OnInit {
  
    
    constructor( private excelsheetService: ExcelSheetsService ) { }
  
    ngOnInit(): void {
    }
  
  
    codigo: any = ''; 
    datos: [][] = [];
    
  
    onFileChange( evt: any  ){
  
    
      
    const target: DataTransfer = &lt;DataTransfer&gt; (evt.target);
  
    if(target.files.length !== 1) throw new Error ('No se pueden subir varios archivos a la vez');
  
    const reader: FileReader = new FileReader();
  
    reader.onload = ( e: any ) =&gt; {
      const bstr: string = e.target.result;
  
      const wb: XLSX.WorkBook = XLSX.read( bstr, { type: 'binary' } );
  
      const wsname: string = wb.SheetNames[0];
  
      const ws: XLSX.WorkSheet = wb.Sheets[wsname];
  
      this.datos = (XLSX.utils.sheet_to_json(ws, { header: 1 }));
      console.log(this.datos);
  
      return this.datos;
  
    }; 
  
    reader.readAsBinaryString(target.files[0]);
  
    }
  
    look(): any{
      
      const found = this.datos.find(element =&gt; element == this.codigo );
      console.log(found);
      console.log(this.datos);
      
  
    }
  
  
    
  
  
    pasardata(){
      this.excelsheetService.impData( this.datos )
        .subscribe( resp =&gt; {
          console.log(resp);
        });
  
    }
  
  
  
    
  
  }
  
  </code></pre>
  <p>The array of arrays is datos. And this is the Html:</p>
  <pre><code>&lt;p&gt;Subir Archivo excel&lt;/p&gt;
  &lt;br&gt;
  
  &lt;input type=&quot;file&quot; (change)=&quot;onFileChange($event)&quot; multiple=&quot;false&quot; /&gt;
  
  &lt;br&gt;
  
  &lt;button (click)=&quot;pasardata()&quot;&gt;
      Subir a base de datos Firebase
  &lt;/button&gt;
  
  &lt;br&gt;
  
  &lt;div class=&quot;col&quot;&gt;
      &lt;form (ngSubmit)=&quot;look()&quot;&gt;
  
          &lt;input type=&quot;text&quot; placeholder=&quot;Codigo&quot; name=&quot;codigo&quot; [(ngModel)]=&quot;codigo&quot;/&gt;
  
  
          &lt;button&gt;Enviar&lt;/button&gt;
  
      &lt;/form&gt;
  &lt;/div&gt;
  
  </code></pre>
  <p>I have tried to access to the datos array of arrays and it returns an empty array, I want to use the array of arrays to display a table an after this get an specific value of the table, using .find().</p>