Skip to content

bucketSubject

bucketSubject(subject, experimentHandle, experiment): string | undefined

Assign one subject to one experiment, or undefined for not-enrolled.

Exported for testing and for callers who want the decision without the provider wrapper. Pure: same inputs always give the same arm, with no storage, no clock and no randomness involved.

string

string

BasicBucketerExperiment

string | undefined