{"ScriptPreparationCode":"const fruits = [\r\n \u0022Apple\u0022, \u0022Banana\u0022, \u0022Cherry\u0022, \u0022Date\u0022, \u0022Elderberry\u0022,\r\n \u0022Fig\u0022, \u0022Grape\u0022, \u0022Honeydew\u0022, \u0022Iced Raspberry\u0022, \u0022Jackfruit\u0022,\r\n \u0022Kiwifruit\u0022, \u0022Lemon\u0022, \u0022Mango\u0022, \u0022Nectarine\u0022, \u0022Orange\u0022,\r\n \u0022Peach\u0022, \u0022Pear\u0022, \u0022Quince\u0022, \u0022Raspberry\u0022, \u0022Strawberry\u0022,\r\n \u0022Tangerine\u0022, \u0022Ugli Fruit\u0022, \u0022Vine Fruit\u0022, \u0022Watermelon\u0022, \u0022Xigua\u0022\r\n];\r\n\r\nvar ARRAY = fruits.map((fruit) =\u003E ({name: fruit, desc: \u0060Description ${fruit}\u0060}));","TestCases":[{"Name":"For","Code":"let el;\r\nfor(var i=0; i \u003C ARRAY.length; i\u002B\u002B) {\r\n\tif(ARRAY[i].name == \u0027Jackfruit\u0027) {\r\n\t\tel = ARRAY[i];\r\n\t\tbreak;\r\n\t}\r\n}","IsDeferred":false},{"Name":"Array.find","Code":"const el = ARRAY.find((obj) =\u003E obj.name === \u0027Jackfruit\u0027);","IsDeferred":false},{"Name":"Array.findIndex","Code":"const el = ARRAY[ARRAY.findIndex((obj) =\u003E obj.name === \u0027Jackfruit\u0027)];","IsDeferred":false}]}