{"ScriptPreparationCode":"var multiSelectCustom = {};\r\n\r\nmultiSelectCustom.popUpEntries = [\u0022abc\u0022,\u0022def\u0022,\u0022ghi\u0022,\u0022jkl\u0022,\u0022mno\u0022,\u0022pqr\u0022,\u0022stu\u0022,\u0022vwx\u0022];\r\nmultiSelectCustom.multiSelectSearchQuery = \u0022g\u0022;\r\n\r\n multiSelectCustom.stringContains = function(theString,query) {\r\n var lowerString = theString.trim().toLowerCase();\r\n var lowerQuery = query.trim().toLowerCase();\r\n if ( lowerString.indexOf(lowerQuery) !== -1 ) return true;\r\n return false;\r\n };","TestCases":[{"Name":"native","Code":"var newEntries = [];\r\nfor ( var i = 0; i \u003C multiSelectCustom.popUpEntries.length; i \u002B\u002B) {\r\n if ( multiSelectCustom.stringContains(multiSelectCustom.popUpEntries[i],multiSelectCustom.multiSelectSearchQuery) === true ) {\r\n newEntries.push(multiSelectCustom.popUpEntries[i]);\r\n }\r\n}\r\nmultiSelectCustom.filteredEntries = newEntries;\r\n","IsDeferred":false},{"Name":"filter","Code":"multiSelectCustom.filteredEntries = multiSelectCustom.popUpEntries.filter(word =\u003E multiSelectCustom.stringContains(word, multiSelectCustom.multiSelectSearchQuery));","IsDeferred":false}]}