const restaurants = keyArray;
const results = queryString ?
restaurants.filter(this.createFilter(queryString)) : restaurants;
// callback
cb(results);
},
createFilter(queryString) {
return restaurant =>
(restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
},