Bump to v4.17.3.

This commit is contained in:
John-David Dalton
2016-12-19 17:41:46 -06:00
parent db9697dfef
commit b93c3b1ee8
33 changed files with 372 additions and 331 deletions

View File

@@ -29,7 +29,9 @@ var MAX_SAFE_INTEGER = 9007199254740991;
* // => 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);
}
module.exports = toSafeInteger;