mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Remove references to _.
This commit is contained in:
7
round.js
7
round.js
@@ -4,7 +4,6 @@ import createRound from './_createRound.js';
|
||||
* Computes `number` rounded to `precision`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.10.0
|
||||
* @category Math
|
||||
* @param {number} number The number to round.
|
||||
@@ -12,13 +11,13 @@ import createRound from './_createRound.js';
|
||||
* @returns {number} Returns the rounded number.
|
||||
* @example
|
||||
*
|
||||
* _.round(4.006);
|
||||
* round(4.006);
|
||||
* // => 4
|
||||
*
|
||||
* _.round(4.006, 2);
|
||||
* round(4.006, 2);
|
||||
* // => 4.01
|
||||
*
|
||||
* _.round(4060, -2);
|
||||
* round(4060, -2);
|
||||
* // => 4100
|
||||
*/
|
||||
const round = createRound('round');
|
||||
|
||||
Reference in New Issue
Block a user