Alan · Maybe

Alan · Maybe · helpers.maybe. Üretim yöntemi · Örnek

helpers.maybe

Üretici ayarları

Sonuçları görmek için veri oluştur.

Parametreler & Örnek

Returns the result of the callback if the probability check was successful, otherwise undefined.

helpers.maybe(callback: () => TResult, options?: { probability? })
callback
The callback that will be invoked if the probability check was successful.
options
The options to use.
options.probability
The probability ([0.00, 1.00]) of the callback being invoked. Defaults to 0.5.

Örnek

null

Test ortamında sentetik veri kullan.

İlgili üreticiler

Senaryoları keşfet