This commit is contained in:
9
node_modules/core-js/internals/math-clamp.js
generated
vendored
Normal file
9
node_modules/core-js/internals/math-clamp.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
var aNumber = require('../internals/a-number');
|
||||
|
||||
var $min = Math.min;
|
||||
var $max = Math.max;
|
||||
|
||||
module.exports = function clamp(value, min, max) {
|
||||
return $min($max(aNumber(value), aNumber(min)), aNumber(max));
|
||||
};
|
||||
Reference in New Issue
Block a user