title: NgxTypeAhead throws list.filter is not a function within its code
body: <p>I have the following code from here:</p>
  <p>Simple Typeahead with Local Data List
  In the component template, add the following Input form field control with ngxTypeahead directives and some other required attribute properties.</p>
  <p><a href="https://www.freakyjolly.com/angular-simple-typeahead-autocomplete-suggestion-search-implementation-in-angular-6-applications/" rel="nofollow noreferrer">Type Ahead Example</a></p>
  <p>What's failing is this:</p>
  <pre><code>    createListSource(list, query) {
          const sanitizedQuery = this.taCaseSensitive ? query : query.toLowerCase();
          const fieldsToExtract = this.taListItemField;
          return of(list.filter((item) =&gt; {
              return resolveItemValue(item, fieldsToExtract, this.taCaseSensitive).includes(sanitizedQuery);
          }));
      }
  </code></pre>
  <p>It's found in line 332 in ngx-typeahead.js</p>
  <p>This is the code to help you from searching:</p>
  <pre><code>&lt;input [value]=&quot;search1&quot;
          ngxTypeahead
          [taList]=&quot;myLocalList&quot; 
          (taSelected)=&quot;selectedStatic($event)&quot;&gt;
  </code></pre>
  <p>[taList]: Items data list which will populate when a user types.</p>
  <p>(taSelected): Emit event when an item from suggestions is selected.</p>
  <p>In the app.component.ts file add the following code</p>
  <pre><code>//app.component.ts
  import { Component } from '@angular/core';
  
  @Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css']
  })
  export class AppComponent {
    title = 'NgxTypeahead Demo';
  
    // Typeahead with Local Data List
  
    public myLocalList = [
      &quot;Burgers&quot;,
      &quot;Sandwiches&quot;,
      &quot;French Fries&quot;,
      &quot;Milkshakes&quot;,
      &quot;Taco&quot;,
      &quot;Biscuit&quot;,
      &quot;Cookies&quot;,
      &quot;Hot Dog&quot;,
      &quot;Pizza&quot;,
      &quot;Pancake&quot;
    ];
    public search1 = '';
    selectedStatic(result) {
      this.search1 = result;
    }
  }
  </code></pre>
  <p>app.module.ts</p>
  <pre><code>//app.module.ts
  import { BrowserModule } from '@angular/platform-browser';
  import { NgModule } from '@angular/core';
  
  import { AppRoutingModule } from './app-routing.module';
  import { AppComponent } from './app.component';
  
  import { NgxTypeaheadModule } from 'ngx-typeahead';
  
  @NgModule({
    declarations: [
      AppComponent
    ],
    imports: [
      BrowserModule,
      AppRoutingModule,
      NgxTypeaheadModule
    ],
    providers: [],
    bootstrap: [AppComponent]
  })
  export class AppModule { }
  </code></pre>
  <p>My own JSON object mimics the example except it's longer, that's all.</p>