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.
Copy of array with the item moved.
Gets compare function for object orders by ascending or descending based on input param 'orderDirection'
Private function to order an array according to the orderBy property
first value to compare
second value to compare
Object property to order by
Generated using TypeDoc
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.