Bump to v4.17.3.

This commit is contained in:
John-David Dalton
2016-12-19 17:23:37 -06:00
parent 035ce4f44c
commit f71a7a04b5
28 changed files with 90 additions and 68 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);
}
export default toSafeInteger;