Modified make.array.filledArray to accept an array of callbacks
This commit is contained in:
parent
7b4bfe7f94
commit
3de3feef21
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ make.arrays = {
|
|||
let size = limit || random.number(make.number.tinyNumber)
|
||||
|
||||
for (let i = 0; i < size; i++) {
|
||||
array.push(fn())
|
||||
array.push(random.pick(fn))
|
||||
}
|
||||
|
||||
return array
|
||||
|
|
Loading…
Reference in a new issue