"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "TrimmingMap", {
    enumerable: true,
    get: function() {
        return TrimmingMap;
    }
});
const _physicalIndexToValueMap = require("./physicalIndexToValueMap");
const _array = require("../../helpers/array");
class TrimmingMap extends _physicalIndexToValueMap.PhysicalIndexToValueMap {
    /**
   * Get physical indexes which are trimmed.
   *
   * Note: Indexes marked as trimmed aren't included in a {@link DataMap} and aren't rendered.
   *
   * @returns {Array}
   */ getTrimmedIndexes() {
        return (0, _array.arrayReduce)(this.getValues(), (indexesList, isTrimmed, physicalIndex)=>{
            if (isTrimmed) {
                indexesList.push(physicalIndex);
            }
            return indexesList;
        }, []);
    }
    constructor(initValueOrFn = false){
        super(initValueOrFn);
    }
}
