sub_off(sub_pos) {
if (!(sub_pos < this.data.length)) {
fail(new Error(`Wrong pos ${sub_pos}`));
}
const end = this.data.length - 2;
if (sub_pos !== end) {
this.peer_move(end, sub_pos);
}
this.data.pop();
this.data.pop();
if (this.data.length === this.sub_from)
this.reap();
}
любые предложения приветствуются. (;