mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Remove unneeded type check from createRound.
This commit is contained in:
@@ -3654,7 +3654,7 @@
|
|||||||
function createRound(methodName) {
|
function createRound(methodName) {
|
||||||
var func = Math[methodName];
|
var func = Math[methodName];
|
||||||
return function(number, precision) {
|
return function(number, precision) {
|
||||||
precision = precision === undefined ? 0 : toInteger(precision);
|
precision = toInteger(precision);
|
||||||
if (precision) {
|
if (precision) {
|
||||||
precision = pow(10, precision);
|
precision = pow(10, precision);
|
||||||
return func(number * precision) / precision;
|
return func(number * precision) / precision;
|
||||||
|
|||||||
Reference in New Issue
Block a user