Minor bug fix in creating filled arrays without a limit
This commit is contained in:
parent
d167b49fba
commit
44d74b09bf
2 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
make.arrays = {
|
||||
filledArray: function (fn, limit) {
|
||||
let array = []
|
||||
let size = limit || random.number(make.number.tiny)
|
||||
let size = limit || random.number(make.number.tiny()) + 1
|
||||
|
||||
for (let i = 0; i < size; i++) {
|
||||
array.push(random.pick(fn))
|
||||
|
|
0
lib/make/style.js
Normal file
0
lib/make/style.js
Normal file
Loading…
Reference in a new issue