{"ScriptPreparationCode":"var arr = [\r\n {text: \u0022foo\u0022},\r\n {text: \u0022bar\u0022},\r\n {text: \u0022baz\u0022},\r\n];","TestCases":[{"Name":"for-loop","Code":"let val;\r\nfor(var i=0; i\u003Carr.length; i\u002B\u002B){\r\n var value = arr[i];\r\n if (value.text === \u0027baz\u0027) {\r\n val = value;\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"for..of","Code":"let val;\r\nfor (var value of arr) {\r\n if (value.text === \u0027baz\u0027) {\r\n val = value;\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"Array.find()","Code":"let val = arr.find(node =\u003E node.text === \u0027baz\u0027);","IsDeferred":false},{"Name":"reverse for","Code":"let val;\r\nfor(var i=arr.length-1; i\u003E-1; i--){\r\n var value = arr[i];\r\n if (value.text === \u0027b\u0027) {\r\n val = value;\r\n break;\r\n }\r\n}","IsDeferred":false}]}