seangenabe / array-insert-random

Inserts items randomly into an array.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

array-insert-random

Inserts items randomly into an array.

Usage

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

About

Inserts items randomly into an array.

License:MIT License


Languages

Language:TypeScript 100.0%