UNPKG

synapse-react-client

Version:

[![Build Status](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client.svg?branch=main)](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synaps

19 lines 756 B
"use strict"; 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