"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFirstIndexColumns = exports.normalizeIndexColumns = void 0;
const normalizeIndexColumns = (indexColumn) => {
    if (!indexColumn) {
        return [];
    }
    if (Array.isArray(indexColumn)) {
        return indexColumn;
    }
    return [indexColumn];
};
exports.normalizeIndexColumns = normalizeIndexColumns;
const getFirstIndexColumns = (indexColumn) => {
    const normalizedIndexColumns = (0, exports.normalizeIndexColumns)(indexColumn);
    return normalizedIndexColumns[0];
};
exports.getFirstIndexColumns = getFirstIndexColumns;
//# sourceMappingURL=utils.js.map