{"ScriptPreparationCode":null,"TestCases":[{"Name":"Map","Code":"const items = [{\r\n name: \u0027demo09\u0027,\r\n date: \u0027123454532\u0027,\r\n gender: \u0027all\u0027\r\n},\r\n{\r\n name: \u0027demo09\u0027,\r\n date: \u0027123454532\u0027,\r\n gender: \u0027all\u0027\r\n},\r\n{\r\n name: \u0027demo2\u0027,\r\n date: \u0027123454532\u0027,\r\n gender: \u0027all\u0027\r\n},\r\n{\r\n name: \u0027demo3\u0027,\r\n date: \u0027123454532\u0027,\r\n gender: \u0027all\u0027\r\n},\r\n{\r\n name: \u0027demo\u0027,\r\n date: \u0027123454532\u0027,\r\n gender: \u0027all\u0027\r\n}];\r\n\r\nconst currentStage = \u0027demo\u0027;\r\n\r\nconst stageIndex = items.map((e) =\u003E e.name).indexOf(currentStage);","IsDeferred":false},{"Name":"Find Index","Code":"const items = [{\r\n name: \u0027demo09\u0027,\r\n date: \u0027123454532\u0027,\r\n gender: \u0027all\u0027\r\n},\r\n{\r\n name: \u0027demo09\u0027,\r\n date: \u0027123454532\u0027,\r\n gender: \u0027all\u0027\r\n},\r\n{\r\n name: \u0027demo2\u0027,\r\n date: \u0027123454532\u0027,\r\n gender: \u0027all\u0027\r\n},\r\n{\r\n name: \u0027demo3\u0027,\r\n date: \u0027123454532\u0027,\r\n gender: \u0027all\u0027\r\n},\r\n{\r\n name: \u0027demo\u0027,\r\n date: \u0027123454532\u0027,\r\n gender: \u0027all\u0027\r\n}];\r\n\r\nconst currentStage = \u0027demo\u0027;\r\n\r\nconst stageIndex = items.findIndex((item) =\u003E item.name === currentStage);","IsDeferred":false}]}