array-cut-and-paste

Cut and paste values in an array

Usage no npm install needed!

<script type="module">
  import arrayCutAndPaste from 'https://cdn.skypack.dev/array-cut-and-paste';
</script>

README

array-cut-and-paste

import cutAndPaste from 'array-cut-and-paste';

const arr = [0, 1, 2, 3];
const result = cutAndPaste(arr, 0, 3);
console.log(result); // [1, 2, 3, 0]

License

array-cut-and-paste is freely distributable under the terms of the MIT license.