Passing the array, return the array shuffled. Use Fisher-Yates algorithm.
$ npm install puzzle-array
<script src="https://unpkg.com/puzzle-array" type="text/javascript"></script>
let array = [0, 1, 2, 3, 4, 5]
array = puzzleArray(array)
console.log(array) // return: [3, 0, 5, 4, 1, 2]
MIT