{"ScriptPreparationCode":"var data = _.range(10000).map(function(i) {\r\n return {\r\n counter: Math.floor(Math.random() * 10)\r\n }\r\n});\r\n\r\nfunction clamp(value, min, max) {\r\n return Math.max(min, Math.min(value, max));\r\n}","TestCases":[{"Name":"R Clamp","Code":"var result = data.map((d) =\u003E R.clamp(1, 5, d.counter));","IsDeferred":false},{"Name":"Lodash clamp","Code":"var result = data.map((d) =\u003E _.clamp(1, 5, d.counter));","IsDeferred":false},{"Name":"JS Clamp","Code":"var result = data.map((d) =\u003E clamp(1, 5, d.counter));","IsDeferred":false}]}