{"ScriptPreparationCode":null,"TestCases":[{"Name":"ternary","Code":"const values = [111, 222, 333, 444, 555, 666, 777, 888, 999];\r\nconst min = 300;\r\nconst max = 700;\r\nconst clamped = values.map(value =\u003E value \u003C min ? min : value \u003E max ? max : value);","IsDeferred":false},{"Name":"min/max","Code":"const values = [111, 222, 333, 444, 555, 666, 777, 888, 999];\r\nconst min = 300;\r\nconst max = 700;\r\nconst clamped = values.map(value =\u003E Math.max(min, Math.min(value, max)));","IsDeferred":false}]}