(source, key, min, max, defaultValue)
| 25 | * @return {number} The clamped value from the `source` object. |
| 26 | */ |
| 27 | var GetMinMaxValue = function (source, key, min, max, defaultValue) |
| 28 | { |
| 29 | if (defaultValue === undefined) { defaultValue = min; } |
| 30 | |
| 31 | var value = GetValue(source, key, defaultValue); |
| 32 | |
| 33 | return Clamp(value, min, max); |
| 34 | }; |
| 35 | |
| 36 | module.exports = GetMinMaxValue; |
no test coverage detected
searching dependent graphs…