greena13/react-hotkeys

View on GitHub
src/utils/array/removeAtIndex.js

Summary

Maintainability
A
0 mins
Test Coverage
function removeAtIndex(array, index) {
  return [
    ...array.slice(0,index),
    ...array.slice(index+1),
  ]
}

export default removeAtIndex;