Bump to v4.13.0.

This commit is contained in:
John-David Dalton
2016-05-21 01:14:43 -07:00
parent dbe6a9008c
commit 0cf3476f14
108 changed files with 1169 additions and 896 deletions

View File

@@ -2,6 +2,9 @@ var toInteger = require('./toInteger'),
toNumber = require('./toNumber'),
toString = require('./toString');
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMin = Math.min;
/**
* Creates a function like `_.round`.
*
@@ -13,7 +16,7 @@ function createRound(methodName) {
var func = Math[methodName];
return function(number, precision) {
number = toNumber(number);
precision = toInteger(precision);
precision = nativeMin(toInteger(precision), 292);
if (precision) {
// Shift with exponential notation to avoid floating-point issues.
// See [MDN](https://mdn.io/round#Examples) for more details.