mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
committed by
John-David Dalton
parent
102d9e34d7
commit
7c006f7445
@@ -29,7 +29,7 @@ function toInteger(value) {
|
||||
const result = toFinite(value)
|
||||
const remainder = result % 1
|
||||
|
||||
return result === result ? (remainder ? result - remainder : result) : 0
|
||||
return remainder ? result - remainder : result
|
||||
}
|
||||
|
||||
export default toInteger
|
||||
|
||||
Reference in New Issue
Block a user