mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Remove references to _.
This commit is contained in:
5
clamp.js
5
clamp.js
@@ -5,7 +5,6 @@ import toNumber from './toNumber.js';
|
||||
* Clamps `number` within the inclusive `lower` and `upper` bounds.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Number
|
||||
* @param {number} number The number to clamp.
|
||||
@@ -14,10 +13,10 @@ import toNumber from './toNumber.js';
|
||||
* @returns {number} Returns the clamped number.
|
||||
* @example
|
||||
*
|
||||
* _.clamp(-10, -5, 5);
|
||||
* clamp(-10, -5, 5);
|
||||
* // => -5
|
||||
*
|
||||
* _.clamp(10, -5, 5);
|
||||
* clamp(10, -5, 5);
|
||||
* // => 5
|
||||
*/
|
||||
function clamp(number, lower, upper) {
|
||||
|
||||
Reference in New Issue
Block a user