Function normalizeRowIndices

  • Sorted, unique row indices inside 0 … rowCount - 1 (the order of the dragged rows is their display order).

    Parameters

    • rowIndices: readonly number[]

      any indices, e.g. from a selection

    • rowCount: number

      number of rows

    Returns number[]

    a new, ascending array

    Example

    normalizeRowIndices([5, 2, 2, 99, -1], 10);   // [2, 5]
    

    Since

    1.1.95