Arbitraryprimitiveprimitive Callableprimitive(context: MaybePartial<PrimitiveGenerator> & { nothing: false }): Dependent<Primitive>primitive(context?: MaybePartial<PrimitiveGenerator>): Dependent<Maybe<Primitive>>It returns an arbitrary that generates primitives. Examplerandom(primitive())// => nullrandom(primitive())// => Symbol(4EM)Parameterscontext: MaybePartial<PrimitiveGenerator> & { nothing: false }Returns Dependent<Primitive>A primitive arbitrary.
It returns an arbitrary that generates primitives.
Example