i think this is fine now?

This commit is contained in:
Bruno Windels 2021-11-23 14:31:23 +01:00
parent e34a92e2ec
commit 7b38df45da

View file

@ -161,7 +161,6 @@ export class ListRange extends Range {
return {type: ResultType.Move, fromIdx, toIdx};
}
} else {
// TODO
const addIdx = this.clampIndex(toIdx);
const removeIdx = this.clampIndex(fromIdx);
const addValue = addIdx === toIdx ? value : getIteratorValueAtIdx(list[Symbol.iterator](), addIdx)!;