Skip to content

How to generate a fixed-length array #4143

Closed Answered by peterhirn
peterhirn asked this question in Q&A
Discussion options

You must be logged in to vote

Never mind, it works as expected.

fc.sample(fc.uint8Array({ minLength: 50, maxLength: 50 })).map((array) =>
  console.log(array.length)
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dubzzz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant