{"ScriptPreparationCode":"var testArr = \u0022JRQ, SCTS, KKC, KKC, KKC, RGC, PDA, PDA, RGC, KKC, PDA, PDA, PDA, SCTS, KKC, DAH, JRM, JRM, RGC, RGC, DAMB, DAMB, KKC, SCTS, RGC, PAC, KKC, KKC, SCTS, SCTS, SCTS, SCTS, KKC, KKC, MIDK, MIDK, KKC, RGC, CHTS, CHTS, CHTS, CHTS, JRQ, JRQ, SCTS, DAH, DAH, AEWC, DQQL, PAC, DQQL, DQQL, AEWC, KIS, AEWC, DQQL, AEWC, PAC, RHN, RHN, KIS, KIS, RHN, RHN, RHN, KIS, KIS, KIS, KIS, KIS, JRQ, RGC, SCTS, RGC, SCTS, KKC, SCTS, SCTS, SCTS, SCTS, SCTS, SCTS, SCTS, SCTS, SCTS, SCTS, DGJ, DGJ, RGC, KKC, KKC, MIDK, MIDK, RGC, KKC, RGC, RGC, RGC, RGC, DGJ, DGJ, PDA, RGC, JRQ, PDA, SCTS, RGC, RGC, SCTS, DXJM, JRQ, PDA, PDA, PDA, SCTS, DAH, DAH, RGC, RGC,\u0022.split(\u0027, \u0027);","TestCases":[{"Name":"Array from Set","Code":"[...new Set(testArr)]","IsDeferred":false},{"Name":"Lodash Uniq","Code":"_.uniq(testArr)","IsDeferred":false},{"Name":"Array Unique","Code":"const { resultArray } = testArr.reduce((result, item) =\u003E {\r\n \r\n if(!result.resultMap[item]){\r\n result.resultMap[item] = true;\r\n result.resultArray.push(item)\r\n }\r\n return result;\r\n}, {resultArray: [], resultMap: {}});\r\n\r\nreturn resultArray;","IsDeferred":false},{"Name":"For Loop","Code":"const resultArray = [];\r\nconst resultMap = {};\r\n\r\nfor(let i=0; i \u003C testArr.length; i\u002B\u002B ) {\r\n const item = testArr[i];\r\n if(resultMap[item]){ \r\n \tcontinue;\r\n }\r\n resultMap[item] = true;\r\n resultArray.push(item)\r\n \r\n}\r\n\r\nreturn resultArray;","IsDeferred":false}]}