function getSelectionRangeIndexes({
    cellSelectionRangeData,
    colgroups,
    allRowKeys,
}) {
    const { leftColKey, rightColKey, topRowKey, bottomRowKey } =
        cellSelectionRangeData;
    return {
        startColIndex: colgroups.findIndex((x) => x.key === leftColKey),
        endColIndex: colgroups.findIndex((x) => x.key === rightColKey),
        startRowIndex: allRowKeys.indexOf(topRowKey),
        endRowIndex: allRowKeys.indexOf(bottomRowKey),
    };
}
@getSelectionRangeIndexes
@desc get selection range indexes
@param {object} cellSelectionRangeData
@param {array<object>} colgroups
@param {array<object>} allRowKeys
@return Array<colKeys>