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