export function filterSkippedCachedFormulaCells(ordered, orderedCount, skipped) {
    if (!skipped || skipped.size === 0) {
        return ordered.length === orderedCount ? ordered : ordered.subarray(0, orderedCount);
    }
    const filtered = new Uint32Array(orderedCount);
    let filteredCount = 0;
    for (let index = 0; index < orderedCount; index += 1) {
        const cellIndex = ordered[index];
        if (cellIndex === undefined || skipped.has(cellIndex)) {
            continue;
        }
        filtered[filteredCount] = cellIndex;
        filteredCount += 1;
    }
    return filtered.subarray(0, filteredCount);
}
//# sourceMappingURL=recalc-skipped-cached-formula-cells.js.map