{"ScriptPreparationCode":null,"TestCases":[{"Name":"for-loop","Code":"var arr = [\u0027hello\u0027, \u0027a\u0027, \u0027b\u0027, \u0027c\u0027, \u0027d\u0027, \u0027e\u0027, \u0027f\u0027, \u0027g\u0027, \u0027h\u0027, \u0027i\u0027];\r\nlet val;\r\nfor(i=0; i\u003Carr.length; i\u002B\u002B){\r\n var value = arr[i];\r\n if (value === \u0027b\u0027) {\r\n val = value;\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"for..of","Code":"var arr = [\u0027hello\u0027, \u0027a\u0027, \u0027b\u0027, \u0027c\u0027, \u0027d\u0027, \u0027e\u0027, \u0027f\u0027, \u0027g\u0027, \u0027h\u0027, \u0027i\u0027];\r\nlet val;\r\nfor (var value of arr) {\r\n if (value === \u0027b\u0027) {\r\n val = value;\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"Array.find()","Code":"var arr = [\u0027hello\u0027, \u0027a\u0027, \u0027b\u0027, \u0027c\u0027, \u0027d\u0027, \u0027e\u0027, \u0027f\u0027, \u0027g\u0027, \u0027h\u0027, \u0027i\u0027];\r\nlet val = arr.find(node =\u003E node.id === \u0027b\u0027);","IsDeferred":false}]}