mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 19:43:28 +00:00
7 lines
116 B
JavaScript
7 lines
116 B
JavaScript
|
var MinSub = function (value, amount, min)
|
||
|
{
|
||
|
return Math.max(value - amount, min);
|
||
|
};
|
||
|
|
||
|
module.exports = MinSub;
|