mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Bump to v4.17.3.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user