{"ScriptPreparationCode":"var data = _.range(8000).map(function(i) {\r\n return {\r\n counter: i,\r\n date: new Date(),\r\n name: \u0027Adam\u0027,\r\n value: (i % 2500) * 0.0001 \u002B 10000\r\n }\r\n});\r\nvar compareNumberDecimal1 = (a, b, decimal_place) =\u003E a.toFixed(decimal_place) === b.toFixed(decimal_place);\r\nvar compareNumberDecimal2 = (a, b, decimal_place) =\u003E Math.round(a * (10 ** decimal_place)) === Math.round(b * (10 ** decimal_place));\r\n","TestCases":[{"Name":"Equal toFixed","Code":"R.uniqWith(\r\n (a, b) =\u003E compareNumberDecimal1(a.value, b.value, 4),\r\n data\r\n)","IsDeferred":false},{"Name":"Equal round","Code":"R.uniqWith(\r\n (a, b) =\u003E compareNumberDecimal2(a.value, b.value, 4),\r\n data\r\n)","IsDeferred":false}]}