{"ScriptPreparationCode":"var myArr = Array.from({\r\n length: 16000\r\n}, () =\u003E ({ value: Math.floor(Math.random() * 1000) }));\r\n\r\nvar myCopy = null;","TestCases":[{"Name":"Lodash uniqBy","Code":"myCopy = _.uniqBy(myArr, \u0027value\u0027);","IsDeferred":false},{"Name":"Custom uniq array ","Code":"const itemIdSet = new Set(myArr.map(item =\u003E item.value));\r\nconst uniqueItems = [];\r\nitemIdSet.forEach(value =\u003E {\r\n const uniqueItem = myArr.find(item =\u003E item.value === value);\r\n if (uniqueItem) uniqueItems.push(uniqueItem);\r\n});\r\nmyCopy = uniqueItems;","IsDeferred":false}]}