{"ScriptPreparationCode":null,"TestCases":[{"Name":"array loop","Code":"var arr = [\r\n { code: 1, title: \u0022titel1\u0022 },\r\n { code: 2, title: \u0022titel2\u0022 },\r\n { code: 3, title: \u0022titel3\u0022 },\r\n { code: 4, title: \u0022titel4\u0022 },\r\n { code: 5, title: \u0022titel5\u0022 },\r\n { code: 6, title: \u0022titel6\u0022 },\r\n { code: 7, title: \u0022titel7\u0022 },\r\n { code: 8, title: \u0022titel8\u0022 },\r\n { code: 9, title: \u0022titel9\u0022 },\r\n];\r\n\r\nlet item;\r\nfor(let i=0; i\u003Carr.length; i\u002B\u002B){\r\n\tconst arrItem = arr[i];\r\n \tif(arrItem.code === 1){\r\n item = arrItem;\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"array find","Code":"var arr = [\r\n { code: 1, title: \u0022titel1\u0022 },\r\n { code: 2, title: \u0022titel2\u0022 },\r\n { code: 3, title: \u0022titel3\u0022 },\r\n { code: 4, title: \u0022titel4\u0022 },\r\n { code: 5, title: \u0022titel5\u0022 },\r\n { code: 6, title: \u0022titel6\u0022 },\r\n { code: 7, title: \u0022titel7\u0022 },\r\n { code: 8, title: \u0022titel8\u0022 },\r\n { code: 9, title: \u0022titel9\u0022 },\r\n];\r\n\r\nconst item = arr.find(it=\u003Eit.code === 1);","IsDeferred":false}]}