Apply more let/const transforms.

This commit is contained in:
John-David Dalton
2017-01-08 23:38:19 -08:00
parent ca9e6fa087
commit 4d0c15b49e
115 changed files with 621 additions and 613 deletions

View File

@@ -18,9 +18,9 @@ import eq from './eq.js';
* // => 1
*/
function sortedIndexOf(array, value) {
var length = array == null ? 0 : array.length;
const length = array == null ? 0 : array.length;
if (length) {
var index = baseSortedIndex(array, value);
const index = baseSortedIndex(array, value);
if (index < length && eq(array[index], value)) {
return index;
}