kit
    Preparing search index...
    • Move item from one place to another in a sortable array of objects, re-ordering the array accrodingly (no swapping of position). This is useful for drag and drop functionalities

      Type Parameters

      • T
      • K extends string | number | symbol

      Parameters

      • items: T[]
      • key: K
      • fromItem: Pick<T, K>
      • toItem: Pick<T, K>

      Returns T[]