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,4 +1,4 @@
import eq from '../eq.js';
import eq from '../eq.js'
/**
* The base implementation of `sortedUniq` and `sortedUniqBy`.
@@ -9,21 +9,21 @@ import eq from '../eq.js';
* @returns {Array} Returns the new duplicate free array.
*/
function baseSortedUniq(array, iteratee) {
let seen;
let index = -1;
let resIndex = 0;
let seen
let index = -1
let resIndex = 0
const length = array.length;
const result = [];
const length = array.length
const result = []
while (++index < length) {
const value = array[index], computed = iteratee ? iteratee(value) : value;
const value = array[index], computed = iteratee ? iteratee(value) : value
if (!index || !eq(computed, seen)) {
seen = computed;
result[resIndex++] = value === 0 ? 0 : value;
seen = computed
result[resIndex++] = value === 0 ? 0 : value
}
}
return result;
return result
}
export default baseSortedUniq;
export default baseSortedUniq