mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Apply more let/const transforms.
This commit is contained in:
@@ -18,9 +18,9 @@ import eq from './eq.js';
|
||||
* // => 3
|
||||
*/
|
||||
function sortedLastIndexOf(array, value) {
|
||||
var length = array == null ? 0 : array.length;
|
||||
const length = array == null ? 0 : array.length;
|
||||
if (length) {
|
||||
var index = baseSortedIndex(array, value, true) - 1;
|
||||
const index = baseSortedIndex(array, value, true) - 1;
|
||||
if (eq(array[index], value)) {
|
||||
return index;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user