mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
perf: use === instead of == (#5118)
This commit is contained in:
@@ -27,7 +27,7 @@ function baseToString(value) {
|
|||||||
return symbolToString ? symbolToString.call(value) : ''
|
return symbolToString ? symbolToString.call(value) : ''
|
||||||
}
|
}
|
||||||
const result = `${value}`
|
const result = `${value}`
|
||||||
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result
|
return (result === '0' && (1 / value) === -INFINITY) ? '-0' : result
|
||||||
}
|
}
|
||||||
|
|
||||||
export default baseToString
|
export default baseToString
|
||||||
|
|||||||
Reference in New Issue
Block a user