"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get getListWithInsertedItems () {
        return getListWithInsertedItems;
    },
    get getListWithRemovedItems () {
        return getListWithRemovedItems;
    }
});
const _array = require("../../../helpers/array");
function getListWithInsertedItems(indexedValues, insertionIndex, insertedIndexes) {
    return [
        ...indexedValues.slice(0, insertionIndex),
        ...insertedIndexes,
        ...indexedValues.slice(insertionIndex)
    ];
}
function getListWithRemovedItems(indexedValues, removedIndexes) {
    return (0, _array.arrayFilter)(indexedValues, (index)=>{
        return removedIndexes.includes(index) === false;
    });
}
