{"ScriptPreparationCode":"function CLAMP_INT( x, min, max ) {\r\n x = x - ((x - max) \u0026 ((max - x) \u003E\u003E 31));\r\n return x - ((x - min) \u0026 ((x - min) \u003E\u003E 31));\r\n //return ( n \u003E max ) ? max : ( n \u003C min ) ? n : min;\r\n}\r\n\r\nfunction branchClamp(num, min, max) {\r\n return num \u003C= min \r\n ? min \r\n : num \u003E= max \r\n ? max \r\n : num\r\n}","TestCases":[{"Name":"Lodash clamp","Code":"_.clamp(150, 10, 100); ","IsDeferred":false},{"Name":"Manual Math.min Math.max","Code":"Math.min(Math.max(150, 10), 100);","IsDeferred":false},{"Name":"CLAMP_INT","Code":"CLAMP_INT(150, 10, 100); ","IsDeferred":false},{"Name":"branchClamp","Code":"branchClamp(150, 10, 100); ","IsDeferred":false}]}