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