{"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 path","Code":"myCopy = _.uniqBy(myArr, \u0027value\u0027);","IsDeferred":false},{"Name":"Lodash uniqBy function","Code":"myCopy = _.uniqBy(myArr, (obj) =\u003E obj.value);","IsDeferred":false},{"Name":"Map","Code":"myCopy = [...new Map(myArr.map((obj) =\u003E [obj.value, obj])).values()];","IsDeferred":false},{"Name":"Set and filter","Code":"const valuesSet = new Set(myArr.map(({ value }) =\u003E value));\r\nmyCopy = myArr.filter(({ value }) =\u003E valuesSet.has(value));","IsDeferred":false},{"Name":"map and filter index","Code":"const valuesArr = myArr.map(({ value }) =\u003E value);\r\nmyCopy = myArr.filter(({ value }, index) =\u003E valuesArr.indexOf(value) === index);","IsDeferred":false}]}