diff options
Diffstat (limited to 'public/javascripts/search.js')
-rw-r--r-- | public/javascripts/search.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/public/javascripts/search.js b/public/javascripts/search.js index 7d80709..8f29363 100644 --- a/public/javascripts/search.js +++ b/public/javascripts/search.js @@ -40,11 +40,13 @@ self._handleSubmit = function (event) { self._calculate = function (searchTerm) { const allResults = fuzzy.filter(searchTerm, USERS, { - extract: item => item.value + extract: function (item) { return item.value } }) const firstResults = allResults.slice(0, 7) - const originalResults = firstResults.map(result => result.original) + const originalResults = firstResults.map(function (result) { + return result.original + }) return originalResults } |