This commit is contained in:
JiaWen Peng
2017-11-01 22:38:28 -05:00
committed by John-David Dalton
parent 102d9e34d7
commit 7c006f7445

View File

@@ -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