Generate an array containing all the values that would have been generated during assert or check
IProperty or Arbitrary to extract the values from
Optional
Integer representing the number of values to generate or Parameters as in assert
Parameters
fc.sample(fc.nat(), 10); // extract 10 values from fc.nat() Arbitraryfc.sample(fc.nat(), {seed: 42}); // extract values from fc.nat() as if we were running fc.assert with seed=42 Copy
fc.sample(fc.nat(), 10); // extract 10 values from fc.nat() Arbitraryfc.sample(fc.nat(), {seed: 42}); // extract values from fc.nat() as if we were running fc.assert with seed=42
Since 0.0.6
Generate an array containing all the values that would have been generated during assert or check