arr-shuffle

shuffle array in javascript

Usage no npm install needed!

<script type="module">
  import arrShuffle from 'https://cdn.skypack.dev/arr-shuffle';
</script>

README

shuffle

array shuffle

Install

$npm install arr-shuffle

Usage

var shuffle = require( 'arr-shuffle' );
var resultArray = shuffle( [1, 2, 3, 4, 5, 6] );
var resultArray2 = shuffle( [1, 2, 3, {'key': 'value'}, 5, 'hello' ] );

License

© 2016 ingpdw. MIT License