mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Remove semicolons.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user