{"ScriptPreparationCode":"var sample = [1000, 1234, 1222, 3444, 1, 89, 100, 1200, 88888, 99999, 2000000];\r\nvar testArray = [];\r\n\r\nfor (var i = 1000000; i \u003E 0; i--){\r\n\tif(i % 3 === 0){\r\n sample.push[i]\r\n }\r\n}\r\n\r\nfor (var i = 0; i \u003C 1000000; i \u002B\u002B)\r\n{\r\n testArray[i] = i;\r\n}\r\n\r\nfunction check(item) {\r\n return item === 55555;\r\n}\r\n\r\nfunction contains(list, item) {\r\n if (item \u0026\u0026 (list \u0026\u0026 list.length)) {\r\n for (var i = 0; i \u003C list.length; i\u002B\u002B) {\r\n var contains = item === 55555;\r\n if (contains) {\r\n return contains;\r\n }\r\n }\r\n }\r\n return false;\r\n}","TestCases":[{"Name":"use for loop","Code":"for (var i = 0; i \u003C sample.length; i\u002B\u002B)\r\n{\r\n\tsample[i] === 55555;\r\n}","IsDeferred":false},{"Name":"use lodash some","Code":"for (var i = 0; i \u003C sample.length; i\u002B\u002B)\r\n{\r\n _.some(testArray, check);\r\n}","IsDeferred":false}]}