synapse-react-client
Version:
[](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [](https://badge.fury.io/js/synaps
19 lines • 756 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getColumnIndiciesWithType = void 0;
var getColumnIndiciesWithType = function (data) {
var _a;
var columnTypes = [];
for (var _i = 1; _i < arguments.length; _i++) {
columnTypes[_i - 1] = arguments[_i];
}
var columnsOfTypeEntity = [];
(_a = data === null || data === void 0 ? void 0 : data.selectColumns) === null || _a === void 0 ? void 0 : _a.forEach(function (el, index) {
if (columnTypes.includes(el.columnType)) {
columnsOfTypeEntity.push(index);
}
});
return columnsOfTypeEntity;
};
exports.getColumnIndiciesWithType = getColumnIndiciesWithType;
//# sourceMappingURL=getColumnIndiciesWithType.js.map