Remove unneeded type check from createRound.

This commit is contained in:
John-David Dalton
2015-09-10 19:06:08 -07:00
parent 8e0011d07a
commit 8b320f913d

View File

@@ -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;