{"ScriptPreparationCode":"const MULTIPLIER = 1e5\r\n\r\nvar ramdaF = R.pipe(\r\n R.map(R.o(Math.round, R.multiply(MULTIPLIER))),\r\n R.filter(R.modulo(R.__, 2))\r\n)\r\n\r\nvar nativeF = vals =\u003E\r\n vals\r\n .map(v =\u003E Math.round(v * MULTIPLIER))\r\n .filter(v =\u003E v % 2)\r\n\r\nvar arr = Array.from({\r\n length: 50000\r\n}, Math.random)\r\n\r\nconst ramdaRes = ramdaF(arr)\r\nconst nativeRes = nativeF(arr)\r\n\r\nif (!R.equals(ramdaRes, nativeRes)) {\r\n throw new Error(\u0027Different results!\u0027)\r\n}","TestCases":[{"Name":"Ramda - Count","Code":"ramdaF(arr)","IsDeferred":false},{"Name":"Native - Count","Code":"nativeF(arr)","IsDeferred":false}]}