mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 02:11:05 +03:30
9 lines
221 B
JavaScript
Vendored
9 lines
221 B
JavaScript
Vendored
// https://rwaldron.github.io/proposal-math-extensions/
|
|
var $export = require('./_export');
|
|
|
|
$export($export.S, 'Math', {
|
|
clamp: function clamp(x, lower, upper) {
|
|
return Math.min(upper, Math.max(lower, x));
|
|
}
|
|
});
|