Tests
{"ScriptPreparationCode":"function generateItems() {\r\n let items = [];\r\n\r\n for (let i = 0; i \u003C 60000; i\u002B\u002B) {\r\n items.push({\r\n value: \u0027test\u0027 \u002B Math.random()\r\n });\r\n }\r\n\r\n return items;\r\n}","TestCases":[{"Name":"Includes","Code":"let items = generateItems();\r\nlet filteredItems = items.filter(item =\u003E item.value.includes(\u0027test0.5\u0027));\r\n","IsDeferred":false},{"Name":"Regex","Code":"let items = generateItems();\r\nlet filteredItems = items.filter(item =\u003E /test0\\.5/.test(item.value));\r\n","IsDeferred":false},{"Name":"Search","Code":"let items = generateItems();\r\nlet filteredItems = items.filter(item =\u003E item.value.search(/test0\\.5/) \u003E= 0);\r\n","IsDeferred":false},{"Name":"Match","Code":"let items = generateItems();\r\nlet filteredItems = items.filter(item =\u003E Boolean(item.value.match(/test0\\.5/)));\r\n","IsDeferred":false},{"Name":"IndexOf","Code":"let items = generateItems();\r\nlet filteredItems = items.filter(item =\u003E item.value.indexOf(\u0027test0.5\u0027) \u003E= 0);\r\n","IsDeferred":false},{"Name":"Lodash Includes","Code":"let items = generateItems();\r\nlet filteredItems = items.filter(item =\u003E _.includes(item.value, \u0027test0.5\u0027));\r\n","IsDeferred":false}]}