Autocomplete query of 3,000+ food items with a simple JavaScript array

Nothing much to say about this except that this was a simple experiment to prove that querying over 3,000 food items could be done with one simple JavaScript object and not need to be housed in a database with the queries that would entail. The script was used in the Tabasco Nation app where users could add the foods they ate with Tabasco.

Full list of food items for reference:

Also check out