An open API service indexing awesome lists of open source software.

https://github.com/writetome51/array-shuffle

Randomly re-orders items in array.
https://github.com/writetome51/array-shuffle

array array-manipulations javascript randomizer shuffle shuffler

Last synced: 3 days ago
JSON representation

Randomly re-orders items in array.

Awesome Lists containing this project

README

          

# shuffle(array): void

Shuffles order of `array`.

## Example
```js
let arr = [1,2,3,4,5,6,7,8];
shuffle(arr);
console.log(arr);
// [2,8,7,5,6,1,4,3]
```

## Installation
`npm i @writetome51/array-shuffle`

## Loading
```js
import {shuffle} from '@writetome51/array-shuffle';
```