ezyVet Javascript Helper Library Documentation
    Preparing search index...

    Function arrayMove

    • Moves the item at index from to index to. Returns a new instance of the array with the item moved.

      Implementation and tests adapted from https://www.npmjs.com/package/array-move. This helper was built to replace our reliance on this dependency.

      Parameters

      • array: any[]
      • from: number
      • to: number

      Returns any[]

      Copy of array with the item moved.