{"ScriptPreparationCode":"var myArray = Array(7000).fill({a:1, b:2});","TestCases":[{"Name":"_.uniqWith","Code":"myArray = _.uniqWith(myArray, _.isEqual);","IsDeferred":false},{"Name":"filter","Code":"const trackObj = {};\r\n\r\nmyArray = myArray.filter(item =\u003E {\r\n \r\n if (trackObj[item.a]) {\r\n const foundDuplicateValue = (trackObj[item.a]).some((val) =\u003E {\r\n return _.isEqual(val, item.b);\r\n });\r\n\r\n // If no duplicate value found, do nothing in this if block.\r\n // If duplicate value found, return false. This will filter out this datum.\r\n if (foundDuplicateValue) return false;\r\n }\r\n \r\n \tif (!trackObj[item.a]) {\r\n trackObj[item.a] = [item.b];\r\n } else {\r\n trackObj[item.a].push(item.b);\r\n }\r\n \treturn true;\r\n})","IsDeferred":false}]}