{"ScriptPreparationCode":"function generateTestArray() {\r\n const courses = Array.from({ length: 1000 }).map((_, i) =\u003E ({\r\n id: \u0060course-${i\u002B1}\u0060, \r\n contents: Array.from({ length: 1000 }).map((_, i) =\u003E ({id: \u0060content-${i\u002B1}\u0060, title: \u0060Lorem ${i\u002B1}\u0060})) \r\n }))\r\n return courses\r\n}","TestCases":[{"Name":"forEach","Code":"const testArray = generateTestArray()\r\nconst choosedNumber = 998\r\ntestArray.forEach(c =\u003E {\r\n const contents = c.contents\r\n const findedContent = contents.findIndex(content =\u003E content.id === \u0060content-${choosedNumber}\u0060)\r\n if (findedContent !== -1) {\r\n console.log(\u0060finded content: ${contents[findedContent].title}\u0060)\r\n }\r\n})","IsDeferred":false},{"Name":"for...of","Code":"const testArray = generateTestArray()\r\nconst choosedNumber = 998\r\nfor (const c of testArray) {\r\n const contents = c.contents\r\n const findedContent = contents.findIndex(content =\u003E content.id === \u0060content-${choosedNumber}\u0060)\r\n if (findedContent !== -1) {\r\n console.log(\u0060finded content: ${contents[findedContent].title}\u0060)\r\n }\r\n}","IsDeferred":false},{"Name":"for","Code":"const testArray = generateTestArray()\r\nconst choosedNumber = 998\r\nfor (let i = 0; i \u003C testArray.length; i\u002B\u002B) {\r\n const contents = testArray[i].contents\r\n const findedContent = contents.findIndex(content =\u003E content.id === \u0060content-${choosedNumber}\u0060)\r\n if (findedContent !== -1) {\r\n console.log(\u0060finded content: ${contents[findedContent].title}\u0060)\r\n }\r\n}","IsDeferred":false}]}