mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23: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),
|
||||
adjust = -1,
|
||||
removal, prev;
|
||||
removal, previous;
|
||||
while(++index < length) {
|
||||
removal = removals[index];
|
||||
if (removal === prev) {
|
||||
if (removal === previous) {
|
||||
result[index] = result[index - 1];
|
||||
continue;
|
||||
}
|
||||
prev = removal;
|
||||
previous = removal;
|
||||
result[index] = splice.call(array, removal - ++adjust, 1)[0];
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user