Remove toString coercion method use.

This commit is contained in:
John-David Dalton
2017-03-14 23:27:37 -07:00
parent 351e44a127
commit b8a3a42278
16 changed files with 9 additions and 45 deletions

View File

@@ -1,5 +1,4 @@
import root from './.internal/root.js'
import toString from './toString.js'
/** Used to match leading and trailing whitespace. */
const reTrimStart = /^\s+/
@@ -34,7 +33,7 @@ function parseInt(string, radix) {
} else if (radix) {
radix = +radix
}
return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0)
return nativeParseInt(`${ string }`.replace(reTrimStart, ''), radix || 0)
}
export default parseInt