array-shuffler

An Array Shuffler API in JavaScript to arrange the elements of an array in random order

Usage no npm install needed!

<script type="module">
  import arrayShuffler from 'https://cdn.skypack.dev/array-shuffler';
</script>

README

array-shuffler

An Array Shuffler API in JavaScript to arrange the elements of an array in random order

How to use?

const { shuffle, addShuffleToArrayPrototype } = require('./index.js');

let arr = [1,2,3,4,5];

console.log(shuffle(arr));

addShuffleToArrayPrototype();

console.log(arr.shuffle());