mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Apply more let/const transforms.
This commit is contained in:
@@ -27,8 +27,8 @@ import toFinite from './toFinite.js';
|
||||
* // => 3
|
||||
*/
|
||||
function toInteger(value) {
|
||||
var result = toFinite(value),
|
||||
remainder = result % 1;
|
||||
const result = toFinite(value);
|
||||
const remainder = result % 1;
|
||||
|
||||
return result === result ? (remainder ? result - remainder : result) : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user