MCPcopy
hub / github.com/phaserjs/phaser / GetMinMaxValue

Function GetMinMaxValue

src/utils/object/GetMinMaxValue.js:27–34  ·  view source on GitHub ↗
(source, key, min, max, defaultValue)

Source from the content-addressed store, hash-verified

25 * @return {number} The clamped value from the `source` object.
26 */
27var 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
36module.exports = GetMinMaxValue;

Callers 1

Calls 2

GetValueFunction · 0.85
ClampFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…