From a71fc9aec45122083705dba2369da0e50a2c9c34 Mon Sep 17 00:00:00 2001 From: Zeja Pyle Date: Wed, 8 Jun 2022 18:58:53 -0400 Subject: [PATCH] Requested adjustments --- more/more.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/more/more.html b/more/more.html index 17ec1e7..f483d24 100644 --- a/more/more.html +++ b/more/more.html @@ -74,16 +74,16 @@ if (seachedFieldsFilter.indexOf(targeted) === -1) { seachedFieldsFilter.push(targeted); } else { - seachedFieldsFilter = arrayRemove(seachedFieldsFilter, targeted); + seachedFieldsFilter = removeElementFromArray(seachedFieldsFilter, targeted); } loadRecordsUpTo = NUMBER_OF_RECORDS_PER_LOAD; displaySearchFieldsFilter(); doSearch(); } - function arrayRemove(arr, value) { + function removeElementFromArray(arr, value) { return arr.filter(function(ele){ - return ele != value; + return ele !== value; }); }