@vect/swap

Swap values at a pair of indexes

Usage no npm install needed!

<script type="module">
  import vectSwap from 'https://cdn.skypack.dev/@vect/swap';
</script>

README

@vect/swap

npm version npm download monthly npm download total npm dependents npm license pp install size github commit last github commit total

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

Meta

LICENSE (MIT)