Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -1,5 +1,5 @@
import baseSortedIndex from './.internal/baseSortedIndex.js';
import eq from './eq.js';
import baseSortedIndex from './.internal/baseSortedIndex.js'
import eq from './eq.js'
/**
* This method is like `lastIndexOf` except that it performs a binary
@@ -12,18 +12,18 @@ import eq from './eq.js';
* @returns {number} Returns the index of the matched value, else `-1`.
* @example
*
* sortedLastIndexOf([4, 5, 5, 5, 6], 5);
* sortedLastIndexOf([4, 5, 5, 5, 6], 5)
* // => 3
*/
function sortedLastIndexOf(array, value) {
const length = array == null ? 0 : array.length;
const length = array == null ? 0 : array.length
if (length) {
const index = baseSortedIndex(array, value, true) - 1;
const index = baseSortedIndex(array, value, true) - 1
if (eq(array[index], value)) {
return index;
return index
}
}
return -1;
return -1
}
export default sortedLastIndexOf;
export default sortedLastIndexOf