{"ScriptPreparationCode":null,"TestCases":[{"Name":"for","Code":"const arr = [\u0027fIrSt\u0027, \u0027sEcOnD\u0027, \u0027tHiRd\u0027, \u0027fOuRtH\u0027, \u0027FIfth\u0027, \u0027SiXTh\u0027, \u0027Seventh\u0027, \u0027EIGHTH\u0027, \u0027NINTH\u0027, \u0027tenth\u0027];\r\n\r\nfunction existsInArr(arr, val) {\r\n for (const x of arr) {\r\n if(x.toLowerCase() === val.toLowerCase()) {\r\n return true; \r\n }\r\n }\r\n return false;\r\n}\r\n\r\narr.forEach(val =\u003E console.log(existsInArr(arr, val)));","IsDeferred":false},{"Name":"find","Code":"const arr = [\u0027fIrSt\u0027, \u0027sEcOnD\u0027, \u0027tHiRd\u0027, \u0027fOuRtH\u0027, \u0027FIfth\u0027, \u0027SiXTh\u0027, \u0027Seventh\u0027, \u0027EIGHTH\u0027, \u0027NINTH\u0027, \u0027tenth\u0027];\r\n\r\nfunction existsInArr(arr, val) {\r\n return arr.find(x =\u003E x.toLowerCase() === val.toLowerCase()) ? true : false;\r\n}\r\n\r\narr.forEach(val =\u003E console.log(existsInArr(arr, val)));","IsDeferred":false}]}