README
@vect/swap
Swap 2 elements of array by input indexes
Features
- Swap elements of array at a pair of given index
Install
$ npm install @vect/swap
Usage
Swap values at a pair of indexes
<script type="module">
import vectSwap from 'https://cdn.skypack.dev/@vect/swap';
</script>
$ npm install @vect/swap