Skip to content

propertyKey

propertyKey(constraints): Dependent<PropertyKey>

It returns an arbitrary that generates an object property key.

Example

random(propertyKey())
// => ""
random(propertyKey())
// => "MWxUWO93"

Parameters

constraints

MaybePartial<PropertyKeyGenerator> = {}

Returns

Dependent<PropertyKey>

An property key arbitrary.