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

https://github.com/seangenabe/array-insert-random

Inserts items randomly into an array.
https://github.com/seangenabe/array-insert-random

array insert javascript random shuffle typescript

Last synced: 9 months ago
JSON representation

Inserts items randomly into an array.

Awesome Lists containing this project

README

          

# array-insert-random

Inserts items randomly into an array.

## Usage

```javascript
const arrayInsertRandom = require('array-insert-random')
```

### arrayInsertRandom(array, items)

Parameters:
* `array` - An array to insert into.
* `items` - An object, or an array of objects, to insert into random positions in the array.

## License

MIT