mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
use more descriptive variable name
This commit is contained in:
committed by
John-David Dalton
parent
ff26080c5c
commit
d25ab4f204
@@ -2929,14 +2929,14 @@
|
|||||||
}
|
}
|
||||||
var result = Array(length),
|
var result = Array(length),
|
||||||
adjust = -1,
|
adjust = -1,
|
||||||
removal, prev;
|
removal, previous;
|
||||||
while(++index < length) {
|
while(++index < length) {
|
||||||
removal = removals[index];
|
removal = removals[index];
|
||||||
if (removal === prev) {
|
if (removal === previous) {
|
||||||
result[index] = result[index - 1];
|
result[index] = result[index - 1];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
prev = removal;
|
previous = removal;
|
||||||
result[index] = splice.call(array, removal - ++adjust, 1)[0];
|
result[index] = splice.call(array, removal - ++adjust, 1)[0];
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user