Type Alias SampleOptionsExperimental
Type declaration
OptionalExperimentalweights?: ArrayLike<number>An array of weights corresponding to each item in the input array. If supplied, this is used to determine the probability of each item being selected.
Options for
sample.UNSTABLE: New API, yet to be vetted.