mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
9 lines
172 B
JavaScript
9 lines
172 B
JavaScript
![]() |
(function () {
|
||
|
var ns = $.namespace('pskl.utils');
|
||
|
|
||
|
ns.Math = {
|
||
|
minmax : function (val, min, max) {
|
||
|
return Math.max(Math.min(val, max), min);
|
||
|
}
|
||
|
};
|
||
|
})();
|