async showListData() {
    const list = document.querySelector('.explore-list');
    const data = await this.restaurants;

    for (let i = this.index.offset; i <= this.index.limit; i++) {
      list.innerHTML += this.elmListCard(data[i]);

      if (i === this.index.limit) {
        this.index.offset = i >= this.index.length ? i : ++i;
      }
    }
  }
/**
   * Show list data restaurant per items
   */
Show list data restaurant per items
Show list data restaurant per items
async showListData() {
    const list = document.querySelector('.explore-list');
    const data = await this.restaurants;
    for (let i = this.index.offset; i <= this.index.limit; i++) {
      list.innerHTML += this.elmListCard(data[i]);
      if (i === this.index.limit) {
        this.index.offset = i >= this.index.length ? i : ++i;
      }
    }
  }
async showListData ( ) { const list = document . querySelector ( '.explore-list' ) ; const data = await this . restaurants ; for ( let i = this . index . offset ; i <= this . index . limit ; i ++ ) { list . innerHTML += this . elmListCard ( data [ i ] ) ; if ( i === this . index . limit ) { this . index . offset = i >= this . index . length ? i : ++ i ; } } }
Show list data restaurant per items
Show list data restaurant per items