diff --git a/js/bootstrap-typeahead.js b/js/bootstrap-typeahead.js
index fad28ea46b1053fafef3f1e79923a20ae5f5c8c6..1205a99caf1f1cbe08da2db6d809065e90872718 100644
--- a/js/bootstrap-typeahead.js
+++ b/js/bootstrap-typeahead.js
@@ -79,7 +79,7 @@
 
       q = this.query.toLowerCase()
 
-      items = this.data.filter(function (item) {
+      items = jQuery.grep(this.data, function (item) {
         if (that.matcher(item, q)) return item
       })