Bump to v4.17.3.

This commit is contained in:
John-David Dalton
2016-12-19 17:17:56 -06:00
parent 0c27706e89
commit c7a7540e16
28 changed files with 195 additions and 152 deletions

View File

@@ -28,7 +28,9 @@ define(['./_baseClamp', './toInteger'], function(baseClamp, toInteger) {
* // => 3
*/
function toSafeInteger(value) {
return baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER);
return value
? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
: (value === 0 ? value : 0);
}
return toSafeInteger;